Partilhar via


CosmosDBLocationCollection.GetAsync(AzureLocation, CancellationToken) Método

Definição

Obter as propriedades de um local existente do Cosmos DB

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}
  • Operação 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))

Parâmetros

location
AzureLocation

Região do Cosmos DB, com espaços entre palavras e cada palavra maiúscula.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a