Freigeben über


CosmosDBExtensions.GetCosmosDBLocationAsync Methode

Definition

Abrufen der Eigenschaften eines vorhandenen Cosmos DB-Speicherorts

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

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

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: