Treść książki

Przejdź do opcji czytnikaPrzejdź do nawigacjiPrzejdź do informacjiPrzejdź do stopki
50
Rozdział2:Korzystaniezpoleceńcmdlet
członkowskimzaczynającymsięnaliteręmjestmethod.Przykładtendemonstruje
jednakmożliwośćstosowaniasymboliwieloznacznychwpoleceniu:
Get-ChildItem|Get-Member-membertypem*
11.Użyjparametru-InputObjectwpoleceniuGet-Member,abyodczytaćdefinicje
członkowskiedlakażdejwłaściwościlubmetodynaliście.Poleceniebędziewyglą-
daćnastępująco:
Get-Member-inputobjectGet-ChildItem
Wynik(skrócony)poleceniajestpokazanyponiżej:
TypeName:System.String
Name
MemberType
---
-
---
---
---
-
Clone
Method
CompareTo
Method
Contains
Method
CopyTo
Method
EndsWith
Method
Equals
Method
GetEnumerator
Method
GetHashCode
Method
GetType
Method
GetTypeCode
Method
IndexOf
Method
IndexOfAny
Method
Insert
Method
IsNormalized
Method
LastIndexOf
Method
LastIndexOfAny
Method
Normalize
Method
PadLeft
Method
PadRight
Method
Remove
Method
Replace
Method
Split
Method
StartsWith
Method
Substring
Method
ToBoolean
Method
ToByte
Method
ToChar
Method
ToCharArray
Method
ToDateTime
Method
ToDecimal
Method
ToDouble
Method
ToInt16
Method
ToInt32
Method
ToInt64
Method
ToLower
Method
ToLowerInvariantMethod
ToSByte
Method
Definition
---
---
---
-
System.ObjectClone(),System.ObjectIClon...
intCompareTo(System.Objectvalue),intCo...
boolContains(stringvalue)
voidCopyTo(intsourceIndex,char[]destin...
boolEndsWith(stringvalue),boolEndsWith...
boolEquals(System.Objectobj),boolEqual...
System.CharEnumeratorGetEnumerator(),Sys...
intGetHashCode()
typeGetType()
System.TypeCodeGetTypeCode(),System.Type...
intIndexOf(charvalue),intIndexOf(char...
intIndexOfAny(char[]anyOf),intIndexOfA...
stringInsert(intstartIndex,stringvalue)
boolIsNormalized(),boolIsNormalized(Sys...
intLastIndexOf(charvalue),intLastIndex...
intLastIndexOfAny(char[]anyOf),intLast...
stringNormalize(),stringNormalize(Syste...
stringPadLeft(inttotalWidth),stringPad...
stringPadRight(inttotalWidth),stringPa...
stringRemove(intstartIndex,intcount),
...
stringReplace(charoldChar,charnewChar)...
string[]Split(Paramschar[]separator),s...
boolStartsWith(stringvalue),boolStarts...
stringSubstring(intstartIndex),stringS...
boolIConvertible.ToBoolean(System.IFormat...
byteIConvertible.ToByte(System.IFormatPro...
charIConvertible.ToChar(System.IFormatPro...
char[]ToCharArray(),char[]ToCharArray(i...
datetimeIConvertible.ToDateTime(System.IF...
decimalIConvertible.ToDecimal(System.IFor...
doubleIConvertible.ToDouble(System.IForma...
int16IConvertible.ToInt16(System.IFormatP...
intIConvertible.ToInt32(System.IFormatPro...
longIConvertible.ToInt64(System.IFormatPr...
stringToLower(),stringToLower(culturein...
stringToLowerInvariant()
sbyteIConvertible.ToSByte(System.IFormatP...