I am a newbie when it comes to PowerShell and come from a BASH background from long ago. PowerShell's built-in documentation and help on the web is pretty good, but one area where I keep stumbling is understanding Methods and Properties (are these called members/classes?). I know that I can see which Methods and Properties I can use by doing, as in example:
ls | get-member
How do .Exists
, .Trim
, .SubString
, or .Split
, etc. actually work?
When you do Get-Member
, you will see the TypeName, something like:
TypeName: System.IO.DirectoryInfo
You can search for that type and look at its members.
These are .NET framework objects and its members and properties, so you can make use of the extensive documentation at msdn.
For example this is the doc for DirectoryInfo: http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With