PowerTip: Use PowerShell to find all methods from .NET Framework class

Summary: Learn how to find all methods from a .NET Framework class by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to show both static and dynamic methods for a .NET Framework class?

Hey, Scripting Guy! Answer Use the GetMethods method from the class. This example uses the System.Math class to return the
           method name and if the method is static:

[math].GetMethods() | Select Name, IsStatic -Unique

Comments (0)

Skip to main content