ProxyCommand.Create ProxyCommand.Create Method

Definition

Overloads

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)

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)

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) 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.

public static string Create (System.Management.Automation.CommandMetadata commandMetadata);
static member Create : System.Management.Automation.CommandMetadata -> string
Parameters
commandMetadata
CommandMetadata CommandMetadata

An instance of CommandMetadata representing a command.

Returns

A string representing Command ScriptBlock.

Exceptions

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.

public static string Create (System.Management.Automation.CommandMetadata commandMetadata, string helpComment);
static member Create : System.Management.Automation.CommandMetadata * string -> string
Parameters
commandMetadata
CommandMetadata CommandMetadata

An instance of CommandMetadata representing a command.

helpComment
String String

The string to be used as the help comment.

Returns

A string representing Command ScriptBlock.

Exceptions

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.

public static string Create (System.Management.Automation.CommandMetadata commandMetadata, string helpComment, bool generateDynamicParameters);
static member Create : System.Management.Automation.CommandMetadata * string * bool -> string
Parameters
commandMetadata
CommandMetadata CommandMetadata

An instance of CommandMetadata representing a command.

helpComment
String String

The string to be used as the help comment.

generateDynamicParameters
Boolean Boolean

A boolean that determines whether the generated proxy command should include the functionality required to proxy dynamic parameters of the underlying command.

Returns

A string representing Command ScriptBlock.

Exceptions

Applies to