你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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