Sdílet prostřednictvím


ProxyCommand.GetEnd(CommandMetadata) Method

Definition

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

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

Parameters

commandMetadata
CommandMetadata

An instance of CommandMetadata representing a command.

Returns

A string representing the end block of the command.

Exceptions

commandMetadata is null.

Applies to