PSCodeMethod Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as an additional code method for a PSObject object.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)


public class PSCodeMethod : PSMethodInfo

NameDescription
System_CAPS_pubmethodPSCodeMethod(String, MethodInfo)

Creates a new PSCodeMethod object that contains the name for the method and the underlying CLR method that this new method is based on.

NameDescription
System_CAPS_pubpropertyCodeReference

Gets the underlying CLR method that the ETS code method is based on.

System_CAPS_pubpropertyIsInstance

Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyMemberType

Gets a constant that identifies this method as an ETS code method.(Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyOverloadDefinitions

Gets a definition of all the overloads of the underlying code method.(Overrides PSMethodInfo.OverloadDefinitions.)

System_CAPS_pubpropertyTypeNameOfValue

Gets the full name of the code method.(Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

Gets and sets the value of this method.(Inherited from PSMethodInfo.)

NameDescription
System_CAPS_pubmethodCopy()

Makes an exact copy of the current PSCodeMethod object.(Overrides PSMemberInfo.Copy().)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvoke(Object[])

Invokes the underlying CLR code method and returns its results.(Overrides PSMethodInfo.Invoke(Object[]).)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetMemberName(String)

Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0.(Inherited from PSMemberInfo.)

System_CAPS_pubmethodToString()

Converts the current PSCodeMethod object to a string.(Overrides Object.ToString().)

A code method is an extended member that is defined in a CLR language. For more information about code methods as well as other method types used by the extended type system (ETS), see ETS Methods [ps]. For more information about ETS, see Windows PowerShell Extended Type System (ETS) [ps].

Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so might result in unexpected behavior.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: