Module.GetParameter(InvocationInfo, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)