PSCodeMethod
Class
Definition
Serves as a method implemented with a reference to another method.
public class PSCodeMethod : System.Management.Automation.PSMethodInfo
- Inheritance
Inherited Members
System.Management.Automation.PSMemberInfo
System.Management.Automation.PSMethodInfo
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 |
| MemberType |
Gets the member type |
| OverloadDefinitions |
Gets the definition for CodeReference |
| TypeNameOfValue |
Gets the type of the value for this member. Currently this always returns typeof(PSCodeMethod).FullName. |
Methods
| Copy() |
returns a new PSMemberInfo that is a copy of this PSMemberInfo |
| Invoke(Object[]) |
Invokes CodeReference method and returns its results. |
| ToString() |
Returns the string representation of this member |