ProxyCommand.GetProcess(CommandMetadata) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method constructs a string representing the process block of the command
specified by commandMetadata
. The returned string only contains the
script, it is not enclosed in "process { }".
public:
static System::String ^ GetProcess(System::Management::Automation::CommandMetadata ^ commandMetadata);
public static string GetProcess (System.Management.Automation.CommandMetadata commandMetadata);
static member GetProcess : System.Management.Automation.CommandMetadata -> string
Public Shared Function GetProcess (commandMetadata As CommandMetadata) As String
Parameters
- commandMetadata
- CommandMetadata
An instance of CommandMetadata representing a command.
Returns
A string representing the process block of the command.
Exceptions
commandMetadata is null.