PSCodeMethod PSCodeMethod PSCodeMethod Class


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

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


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


PSCodeMethod(String, MethodInfo) PSCodeMethod(String, MethodInfo) PSCodeMethod(String, MethodInfo)

Initializes a new instance of the PSCodeMethod class.


CodeReference CodeReference CodeReference

Gets the method referenced by this PSCodeMethod

IsInstance IsInstance IsInstance Inherited from PSMemberInfo
MemberType MemberType MemberType

Gets the member type

Name Name Name Inherited from PSMemberInfo
OverloadDefinitions OverloadDefinitions OverloadDefinitions

Gets the definition for CodeReference

TypeNameOfValue TypeNameOfValue TypeNameOfValue

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

Value Value Value Inherited from PSMethodInfo


Copy() Copy() Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

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

Invokes CodeReference method and returns its results.

SetMemberName(String) SetMemberName(String) SetMemberName(String) Inherited from PSMemberInfo
ToString() ToString() ToString()

Returns the string representation of this member

Applies to