January 31st, 2016

PowerTip: Find properties of .NET Framework class with PowerShell

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to display properties of a .NET Framework class.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily display properties of a .NET Framework class?

Hey, Scripting Guy! Answer Pipe the type accelerator to the Get-Member cmdlet and specify the MemberType property,
           for example:

[string] | gm -MemberType Properties

Notegm is an alias for Get-Member.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.