PSCodeMethod Class

Definition

Serves as a method implemented with a reference to another method.

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

Remarks

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

Constructors

PSCodeMethod(String, MethodInfo)

Initializes a new instance of the PSCodeMethod class.

Properties

CodeReference

Gets the method referenced by this PSCodeMethod.

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.

Name

Gets the member name.

(Inherited from PSMemberInfo)
OverloadDefinitions

Gets the definition for CodeReference.

TypeNameOfValue

Gets the type of the value for this member. Currently this always returns typeof(PSCodeMethod).FullName.

Value

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

(Inherited from PSMethodInfo)

Methods

Copy()

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

Invoke(Object[])

Invokes CodeReference method and returns its results.

SetMemberName(String)

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

(Inherited from PSMemberInfo)
ToString()

Returns the string representation of this member.

Applies to