ProxyCommand ProxyCommand ProxyCommand Class

Definition

A ProxyCommand class used to represent a Command constructed Dynamically

public sealed class ProxyCommand
type ProxyCommand = class
Public NotInheritable Class ProxyCommand
Inheritance
ProxyCommandProxyCommandProxyCommand

Methods

Create(CommandMetadata) Create(CommandMetadata) Create(CommandMetadata)

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.

Create(CommandMetadata, String) Create(CommandMetadata, String) Create(CommandMetadata, String)

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.

Create(CommandMetadata, String, Boolean) Create(CommandMetadata, String, Boolean) 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.

GetBegin(CommandMetadata) GetBegin(CommandMetadata) GetBegin(CommandMetadata)

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

GetCmdletBindingAttribute(CommandMetadata) GetCmdletBindingAttribute(CommandMetadata) GetCmdletBindingAttribute(CommandMetadata)

This method constructs a string representing the CmdletBinding attribute of the command specified by commandMetadata.

GetDynamicParam(CommandMetadata) GetDynamicParam(CommandMetadata) 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) GetEnd(CommandMetadata) GetEnd(CommandMetadata)

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

GetHelpComments(PSObject) GetHelpComments(PSObject) GetHelpComments(PSObject)

Construct the text that can be used in a multi-line comment for get-help.

GetParamBlock(CommandMetadata) GetParamBlock(CommandMetadata) GetParamBlock(CommandMetadata)

This method constructs a string representing the param block of the command specified by commandMetadata. The returned string only contains the parameters, it is not enclosed in "param()".

GetProcess(CommandMetadata) GetProcess(CommandMetadata) GetProcess(CommandMetadata)

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

Applies to