PSScriptMethod Class

Definition

Serves as a method implemented with a script

public class PSScriptMethod : System.Management.Automation.PSMethodInfo
Inheritance

Inherited Members

System.Management.Automation.PSMemberInfo

System.Management.Automation.PSMethodInfo

Remarks

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

Constructors

PSScriptMethod(String, ScriptBlock)

Initializes a new instance of PSScriptMethod

Properties

MemberType

Gets the member type

OverloadDefinitions

Gets a list of all the overloads for this method

Script

Gets the script implementing this PSScriptMethod

TypeNameOfValue

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

Methods

Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

Invoke(Object[])

Invokes Script method and returns its results.

ToString()

Returns the string representation of this member