ProxyCommand.GetProcess Method

Constructs the script of the Process 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)

Dim commandMetadata As CommandMetadata
Dim returnValue As String

returnValue = ProxyCommand.GetProcess(commandMetadata)

public static string GetProcess (
	CommandMetadata commandMetadata
public static String GetProcess (
	CommandMetadata commandMetadata
public static function GetProcess (
	commandMetadata : CommandMetadata
) : String



A CommandMetadata object that describes the original command.

Return Value

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

Exception typeCondition

commandMetadata is null.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft