This topic has not yet been rated - Rate this topic

PSScriptMethod Members

Represents a method that runs a script when it is called. These methods are referred to as script methods and are used to extend objects.

The following tables list the members exposed by the PSScriptMethod type.

  Name Description
  PSScriptMethod Initializes a new instance of the PSScriptMethod class that contains the name of the method and the script that is run when the method is called.
Top
  Name Description
public property IsInstance  Gets a value that indicates whether the source of the member is a type configuration file. (Inherited from PSMemberInfo)
public property MemberType Overridden. Gets an identifier that indicates that this method is a script method.
public property Name  Gets the name of the extended member (method, property, or member set). (Inherited from PSMemberInfo)
public property OverloadDefinitions Overridden. Gets the definitions of all of the overloads of the underlying script method.
public property Script Gets the script that is run when the method is called.
public property TypeNameOfValue Overridden. Gets the extended type system (ETS) type of this method.
public property Value  Overridden. Gets and sets the value of this method. (Inherited from PSMemberInfo)
Top
(see also Protected Methods )
 NameDescription
public methodCopyOverridden. Creates a copy of the current PSScriptMethod object.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodInvokeOverridden. Invokes the script of the method and retrieves its results.
public methodToStringOverridden. Converts the PSScriptMethod object to a string.
Top
  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method SetMemberName  Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0. (Inherited from PSMemberInfo)
Top

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.