次の方法で共有


AzureContextModificationCmdlet.TryGetExistingContextNameParameter Method

Definition

Overloads

TryGetExistingContextNameParameter(String, RuntimeDefinedParameter)

Generate a runtime parameter with ValidateSet matching the current context

TryGetExistingContextNameParameter(String, String, RuntimeDefinedParameter)

Generate a runtime parameter with ValidateSet matching the current context

TryGetExistingContextNameParameter(String, RuntimeDefinedParameter)

Generate a runtime parameter with ValidateSet matching the current context

protected bool TryGetExistingContextNameParameter (string name, out System.Management.Automation.RuntimeDefinedParameter runtimeParameter);
member this.TryGetExistingContextNameParameter : string * RuntimeDefinedParameter -> bool
Protected Function TryGetExistingContextNameParameter (name As String, ByRef runtimeParameter As RuntimeDefinedParameter) As Boolean

Parameters

name
String

The name of the parameter

runtimeParameter
RuntimeDefinedParameter

The returned runtime parameter for context, with appropriate validate set

Returns

True if one or more contexts were found, otherwise false

Applies to

TryGetExistingContextNameParameter(String, String, RuntimeDefinedParameter)

Generate a runtime parameter with ValidateSet matching the current context

protected bool TryGetExistingContextNameParameter (string name, string parameterSetName, out System.Management.Automation.RuntimeDefinedParameter runtimeParameter);
member this.TryGetExistingContextNameParameter : string * string * RuntimeDefinedParameter -> bool
Protected Function TryGetExistingContextNameParameter (name As String, parameterSetName As String, ByRef runtimeParameter As RuntimeDefinedParameter) As Boolean

Parameters

name
String

The name of the parameter

parameterSetName
String
runtimeParameter
RuntimeDefinedParameter

The returned runtime parameter for context, with appropriate validate set

Returns

True if one or more contexts were found, otherwise false

Applies to