共用方式為


ProxyCommand.GetClean(CommandMetadata) Method

Definition

This method constructs a string representing the clean block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "clean { }".

public static string GetClean (System.Management.Automation.CommandMetadata commandMetadata);
static member GetClean : System.Management.Automation.CommandMetadata -> string
Public Shared Function GetClean (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

If commandMetadata is null.

Applies to