PSMethod Class

Definition

Used to access the adapted or base methods from the BaseObject

public class PSMethod : System.Management.Automation.PSMethodInfo
Inheritance

Inherited Members

System.Management.Automation.PSMemberInfo

System.Management.Automation.PSMethodInfo

Remarks

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

Properties

MemberType

Gets the member type

OverloadDefinitions

Gets a list of all the overloads for this method

TypeNameOfValue

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

Methods

Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

Invoke(Object[])

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

ToString()

Returns the string representation of this member