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.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Create(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. |
![]() ![]() | Create(CommandMetadata, String) | Constructs a script block of the proxy command that is based on the specified command. |
![]() ![]() | Create(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. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() ![]() | GetBegin(CommandMetadata) | Constructs the script of the Begin block for the proxy command. This method is introduced in Windows PowerShell 2.0. |
![]() ![]() | GetCmdletBindingAttribute(CommandMetadata) | Constructs the text of the cmdlet binding attribute of a command. |
![]() ![]() | GetDynamicParam(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 { }". |
![]() ![]() | GetEnd(CommandMetadata) | Constructs the script of the End block for the proxy command. This method is introduced in Windows PowerShell 2.0. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() ![]() | GetHelpComments(PSObject) | Constructs the text that can be used in a multi-line comment for the Get-Help cmdlet. |
![]() ![]() | GetParamBlock(CommandMetadata) | Constructs the script of the Parameter block for the proxy command. This method is introduced in Windows PowerShell 2.0. |
![]() ![]() | GetProcess(CommandMetadata) | Constructs the script of the Process block for the proxy command. This method is introduced in Windows PowerShell 2.0. |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (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.

