Share via


ProxyCommand.GetParamBlock(CommandMetadata) Method

Definition

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

public:
 static System::String ^ GetParamBlock(System::Management::Automation::CommandMetadata ^ commandMetadata);
public static string GetParamBlock (System.Management.Automation.CommandMetadata commandMetadata);
static member GetParamBlock : System.Management.Automation.CommandMetadata -> string
Public Shared Function GetParamBlock (commandMetadata As CommandMetadata) As String

Parameters

commandMetadata
CommandMetadata

An instance of CommandMetadata representing a command.

Returns

A string representing the parameters of the command.

Exceptions

commandMetadata is null.

Applies to