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

ResourceManagerCmdletBaseWithApiVersion.DetermineApiVersion Method

Definition

Overloads

DetermineApiVersion(String, Nullable<Boolean>)

Determines the API version.

DetermineApiVersion(String, String, Nullable<Boolean>)

Determines the API version.

DetermineApiVersion(String, Nullable<Boolean>)

Determines the API version.

protected System.Threading.Tasks.Task<string> DetermineApiVersion (string resourceId, bool? pre = default);
member this.DetermineApiVersion : string * Nullable<bool> -> System.Threading.Tasks.Task<string>
Protected Function DetermineApiVersion (resourceId As String, Optional pre As Nullable(Of Boolean) = Nothing) As Task(Of String)

Parameters

resourceId
String

The resource Id.

pre
Nullable<Boolean>

When specified, indicates if pre-release API versions should be considered.

Returns

Applies to

DetermineApiVersion(String, String, Nullable<Boolean>)

Determines the API version.

protected System.Threading.Tasks.Task<string> DetermineApiVersion (string providerNamespace, string resourceType, bool? pre = default);
member this.DetermineApiVersion : string * string * Nullable<bool> -> System.Threading.Tasks.Task<string>
Protected Function DetermineApiVersion (providerNamespace As String, resourceType As String, Optional pre As Nullable(Of Boolean) = Nothing) As Task(Of String)

Parameters

providerNamespace
String

The provider namespace.

resourceType
String

The resource type.

pre
Nullable<Boolean>

When specified, indicates if pre-release API versions should be considered.

Returns

Applies to