Treść książki

Przejdź do opcji czytnikaPrzejdź do nawigacjiPrzejdź do informacjiPrzejdź do stopki
KorzystaniezpoleceniaGet-Member
49
CreationTime
Property
CreationTimeUtc
Property
Directory
Property
DirectoryName
Property
Exists
Property
Extension
Property
FullName
Property
IsReadOnly
Property
LastAccessTime
Property
LastAccessTimeUtcProperty
LastWriteTime
LastWriteTimeUtc
Length
Name
Property
Property
Property
Property
datetimeCreationTime{get;set;}
datetimeCreationTimeUtc{get;set;}
System.IO.DirectoryInfoDirectory{get;}
stringDirectoryName{get;}
boolExists{get;}
stringExtension{get;}
stringFullName{get;}
boolIsReadOnly{get;set;}
datetimeLastAccessTime{get;set;}
datetimeLastAccessTimeUtc{get;set;}
datetimeLastWriteTime{get;set;}
datetimeLastWriteTimeUtc{get;set;}
longLength{get;}
stringName{get;}
8.Użyjparametru-MemberTypedlapoleceniacmdletGet-Member,abywyświetlić
listęmetoddostępnychdlaobiektuzwracanegoprzezpolecenieGet-ChildItem.
Wtymcelunależypodaćmethodjakowartośćparametru,jakponiżej:
Get-ChildItem|Get-Member-membertypemethod
9.Wwynikutegopoleceniauzyskamylistęwszystkichmetod.Skróconyfragment
tegolistingujestpokazanyponiżej(zwróćmyuwagę,żeinformacjezawarte
wkolumnieDefinitionobciętezewzględunaszerokośćoknakonsoli):
TypeName:System.IO.DirectoryInfo
Name
MemberTypeDefinition
---
-
---
---
---
----
---
---
-
Create
Method
voidCreate(),voidCreate(System.Securit...
CreateObjRef
Method
System.Runtime.Remoting.ObjRefCreateObjR...
CreateSubdirectory
Method
System.IO.DirectoryInfoCreateSubdirector...
Delete
Method
voidDelete(),voidDelete(boolrecursive)
EnumerateDirectories
Method
System.Collections.Generic.IEnumerable[Sy...
EnumerateFiles
Method
System.Collections.Generic.IEnumerable[Sy...
EnumerateFileSystemInfos
Method
System.Collections.Generic.IEnumerable[Sy...
Equals
Method
boolEquals(System.Objectobj)
GetAccessControl
Method
System.Security.AccessControl.DirectorySe...
GetDirectories
Method
System.IO.DirectoryInfo[]GetDirectories(...
GetFiles
Method
System.IO.FileInfo[]GetFiles(stringsear...
GetFileSystemInfos
Method
System.IO.FileSystemInfo[]GetFileSystemI...
GetHashCode
Method
intGetHashCode()
GetLifetimeService
Method
System.ObjectGetLifetimeService()
GetObjectData
Method
voidGetObjectData(System.Runtime.Seriali...
GetType
Method
typeGetType()
InitializeLifetimeServiceMethod
System.ObjectInitializeLifetimeService()
MoveTo
Method
voidMoveTo(stringdestDirName)
Refresh
Method
voidRefresh()
SetAccessControl
Method
voidSetAccessControl(System.Security.Acc...
ToString
Method
stringToString()
10.Użyjstrzałkiwgórę,abywyświetlićpoprzedniepolecenieizmieńparametr
methodnam*;wynikpoleceniabędziedokładnietakisam,gdyżjedynymtypem