Question

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).

Était-ce utile?

La solution

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

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top