共用方式為


LocationOperationsExtensions.CheckNameAvailabilityAsync 方法

定義

檢查 Batch 帳戶名稱是否可在指定的區域中使用。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.CheckNameAvailabilityResult> CheckNameAvailabilityAsync (this Microsoft.Azure.Management.Batch.ILocationOperations operations, string locationName, string name, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.Batch.ILocationOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.CheckNameAvailabilityResult>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As ILocationOperations, locationName As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CheckNameAvailabilityResult)

參數

operations
ILocationOperations

這個擴充方法的作業群組。

locationName
String

名稱檢查所需的區域。

name
String

要檢查可用性的名稱

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於