PowerShell: Members: Methods and Properties documentation in the ISE

173 Views Asked by At

Where could I get help documentation [examples] about methods and properties in the Powershell ISE. For example the Join method.

-join $a[3,4,5]; #trying to extract a part of a string

It is not even listed when I do ($a | gm).

2

There are 2 best solutions below

0
On BEST ANSWER

You are confusing between operators and cmdlets that are present in Powershell with methods and properties of (.NET) objects. gm or Get-Member will only show the latter.

You can learn about -join by doing get-help about_join or look here - http://technet.microsoft.com/en-us/library/hh847757.aspx

Take a look at about_Operator to learn about other available operators - http://technet.microsoft.com/en-us/library/hh847732.aspx

0
On

That's because -join isn't a "method", it's an operator.

See get-help about_operators (look for Split and Join Operators) and get-help about_join.