ProxyCommand Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a command that is based on another command and is created dynamically by the Windows PowerShell runtime. This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

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

System::Object
  System.Management.Automation::ProxyCommand

public ref class ProxyCommand sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate(CommandMetadata^)

Constructs a string representation of the proxy command that is based on the specified command. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreate(CommandMetadata^, String^)

Constructs a script block of the proxy command that is based on the specified command.

System_CAPS_pubmethodSystem_CAPS_staticCreate(CommandMetadata^, String^, Boolean)

This method constructs a string representing the command specified by commandMetadata. The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetBegin(CommandMetadata^)

Constructs the script of the Begin block for the proxy command. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticGetCmdletBindingAttribute(CommandMetadata^)

Constructs the text of the cmdlet binding attribute of a command.

System_CAPS_pubmethodSystem_CAPS_staticGetDynamicParam(CommandMetadata^)

This method constructs a string representing the dynamic parameter block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "dynamicparam { }".

System_CAPS_pubmethodSystem_CAPS_staticGetEnd(CommandMetadata^)

Constructs the script of the End block for the proxy command. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetHelpComments(PSObject^)

Constructs the text that can be used in a multi-line comment for the Get-Help cmdlet.

System_CAPS_pubmethodSystem_CAPS_staticGetParamBlock(CommandMetadata^)

Constructs the script of the Parameter block for the proxy command. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticGetProcess(CommandMetadata^)

Constructs the script of the Process block for the proxy command. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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
Show: