System.Management.Automatio ...


PSMethod Class
Defines a method that provides access to a method of the base object or made accessible through an adapter. These methods are referred to as Windows PowerShell methods.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage

Dim instance As PSMethod
Syntax

Visual Basic
Public Class PSMethod
    Inherits PSMethodInfo
C#
public class PSMethod : PSMethodInfo
C++
public ref class PSMethod : public PSMethodInfo
J#
public class PSMethod extends PSMethodInfo
JScript
public class PSMethod extends PSMethodInfo
Remarks

For more information about the methods that can be used to extend base objects, see ETS Methods.

Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so may result in unexpected behavior.


Inheritance Hierarchy

System.Object
   System.Management.Automation.PSMemberInfo
     System.Management.Automation.PSMethodInfo
      System.Management.Automation.PSMethod
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
See Also

Page view tracker