Windows Dev Center

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.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

© 2015 Microsoft