ProxyCommand.GetBegin Method

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

'Usage
Dim commandMetadata As CommandMetadata
Dim returnValue As String

returnValue = ProxyCommand.GetBegin(commandMetadata)

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

Parameters

commandMetadata

A CommandMetadata object that describes the original command.

Return Value

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

Exception typeCondition
ArgumentNullException

commandMetadata is null. Specify a CommandMetadata object and try again.

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.
Show:
© 2014 Microsoft