Compartir a través de


ProxyCommand.GetDynamicParam(CommandMetadata) Method

Definition

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 { }".

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

Parameters

commandMetadata
CommandMetadata

An instance of CommandMetadata representing a command.

Returns

A string representing the dynamic parameter block of the command.

Exceptions

commandMetadata is null.

Applies to