The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProxyCommand.GetEnd Method (CommandMetadata)


Updated: April 27, 2016

Applies To: Windows PowerShell

Constructs the script of the End block for the proxy command. This method is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public static string GetEnd(
	CommandMetadata commandMetadata


Type: System.Management.Automation.CommandMetadata

A CommandMetadata object that describes the original command.

Return Value

Type: System.String

A String that contains the script of the End block. The returned string contains only the script included in the End block; it does not include the "end { }" text.

Exception Condition

commandMetadata is null.

Return to top

Community Additions