Delen via


PSMethodInfo Class

Definition

Serves as a base class for all members that behave like methods.

public ref class PSMethodInfo abstract : System::Management::Automation::PSMemberInfo
public abstract class PSMethodInfo : System.Management.Automation.PSMemberInfo
type PSMethodInfo = class
    inherit PSMemberInfo
Public MustInherit Class PSMethodInfo
Inherits PSMemberInfo
Inheritance
PSMethodInfo
Derived

Constructors

PSMethodInfo()

Initializes a new instance of a class derived from PSMethodInfo.

Properties

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

Gets the member type.

(Inherited from PSMemberInfo)
Name

Gets the member name.

(Inherited from PSMemberInfo)
OverloadDefinitions

Gets a list of all the overloads for this method.

TypeNameOfValue

Gets the type of the value for this member.

(Inherited from PSMemberInfo)
Value

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

Methods

Copy()

Returns a new PSMemberInfo that is a copy of this PSMemberInfo.

(Inherited from PSMemberInfo)
Invoke(Object[])

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

SetMemberName(String)

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

(Inherited from PSMemberInfo)

Applies to