Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
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.GetParamBlock Method

Constructs the script of the Parameter 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.GetParamBlock(commandMetadata)

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

Parameters

commandMetadata

A CommandMetadata object that describes the original command.

Return Value

A String that contains the script of the Parameter block. The returned string contains only the script included in the Parameter block; it does not include the "param()" text.

Exception typeCondition
ArgumentNullException

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


Show:
© 2015 Microsoft