PSMethod Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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)


public class PSMethod : PSMethodInfo

NameDescription
System_CAPS_pubpropertyIsInstance

Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyMemberType

Gets an Method constant that identifies this method as a Windows PowerShell method.(Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyOverloadDefinitions

Gets the definitions of all the overloads of the underlying method.(Overrides PSMethodInfo.OverloadDefinitions.)

System_CAPS_pubpropertyTypeNameOfValue

Gets the ETS method type name of the method.(Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

Gets and sets the value of this method.(Inherited from PSMethodInfo.)

NameDescription
System_CAPS_pubmethodCopy()

Makes a copy of the current PSMethod object.(Overrides PSMemberInfo.Copy().)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvoke(Object[])

Calls the underlying method.(Overrides PSMethodInfo.Invoke(Object[]).)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetMemberName(String)

Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0.(Inherited from PSMemberInfo.)

System_CAPS_pubmethodToString()

Converts the PSMethod object to a string.(Overrides Object.ToString().)

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

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.

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

Return to top
Show: