Freigeben über


CosmosDBLocationCollection.GetAsync(AzureLocation, CancellationToken) Methode

Definition

Abrufen der Eigenschaften eines vorhandenen Cosmos DB-Speicherorts

  • Anforderungspfad/Abonnements/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}
  • Vorgangs-IdLocations_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBLocationResource>> GetAsync (Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBLocationResource>>
override this.GetAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBLocationResource>>
Public Overridable Function GetAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CosmosDBLocationResource))

Parameter

location
AzureLocation

Cosmos DB-Region mit Leerzeichen zwischen Wörtern und großgeschriebenen Wörtern.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: