Share via


Module.GetParameter(InvocationInfo, String, String) Method

Definition

Gets parameters from a common module.

public object GetParameter (System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName);
member this.GetParameter : System.Management.Automation.InvocationInfo * string * string -> obj
Public Function GetParameter (invocationInfo As InvocationInfo, correlationId As String, parameterName As String) As Object

Parameters

invocationInfo
InvocationInfo

The InvocationInfo from the cmdlet

correlationId
String

the cmdlet's correlation id.

parameterName
String

The name of the parameter to get the value for.

Returns

The parameter value from the common module. (Note: this should be type converted on the way back)

Applies to