Compartilhar via


StorageTargetCollection.GetAsync(String, CancellationToken) Método

Definição

Retorna um destino de armazenamento de um cache.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operação IdStorageTargets_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>> GetAsync (string storageTargetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>>
Public Overridable Function GetAsync (storageTargetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StorageTargetResource))

Parâmetros

storageTargetName
String

Nome do Destino de Armazenamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

storageTargetName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

storageTargetName é nulo.

Aplica-se a