Freigeben über


LocationOperationsExtensions.CheckNameAvailabilityAsync Methode

Definition

Überprüft, ob der Name des Batch-Kontos in der angegebenen Region verfügbar ist.

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)

Parameter

operations
ILocationOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

locationName
String

Der gewünschte Bereich für die Namensüberprüfung.

name
String

Der Name, der auf Verfügbarkeit überprüft werden soll.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: