January 31st, 2016

PowerTip: Use PowerShell to view properties and their values for a .NET Framework class

Doctor Scripto
Scripter

Summary: Learn how to view properties and the associated values of those properties of .NET Framework classes with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to view the properties and their values from a .NET Framework class,
           such as System.String?

Hey, Scripting Guy! Answer Use the Type accelerator [string], pipe the output to the Format-List cmdlet, and use an asterisk to
           select all properties:

[string] | fl *

Note: fl is an alias for Format-List.

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.