Freigeben über


CosmosDBLocationCollection.ExistsAsync Methode

Definition

Überprüft, ob die Ressource in Azure vorhanden ist.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}
  • Vorgang IdLocations_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parameter

location
AzureLocation

Cosmos DB-Region mit Leerzeichen zwischen Wörtern und jedem Wort in Großbuchstaben.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: