PSMethod PSMethod PSMethod PSMethod Class


Used to access the adapted or base methods from the BaseObject

public ref class PSMethod : System::Management::Automation::PSMethodInfo
public class PSMethod : System.Management.Automation.PSMethodInfo
type PSMethod = class
    inherit PSMethodInfo
Public Class PSMethod
Inherits PSMethodInfo


It is permitted to subclass PSMethod but there is no established scenario for doing this, nor has it been tested.


IsInstance IsInstance IsInstance IsInstance

True if this member has been added to the instance as opposed to coming from the adapter or from type data

(Inherited from PSMemberInfo)
MemberType MemberType MemberType MemberType

Gets the member type

Name Name Name Name

Gets the member name

(Inherited from PSMemberInfo)
OverloadDefinitions OverloadDefinitions OverloadDefinitions OverloadDefinitions

Gets a list of all the overloads for this method

TypeNameOfValue TypeNameOfValue TypeNameOfValue TypeNameOfValue

Gets the type of the value for this member. This always returns typeof(PSMethod).FullName.

Value Value Value Value

Gets the value of this member. The getter returns the PSMethodInfo itself.

(Inherited from PSMethodInfo)


Copy() Copy() Copy() Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

Invoke(Object[]) Invoke(Object[]) Invoke(Object[]) Invoke(Object[])

Invokes the appropriate method overload for the given arguments and returns its result.

SetMemberName(String) SetMemberName(String) SetMemberName(String) SetMemberName(String)

Allows a derived class to set the member name...

(Inherited from PSMemberInfo)
ToString() ToString() ToString() ToString()

Returns the string representation of this member

Applies to