Compartilhar via


StorageCacheResource.GetStorageTargetAsync(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}
  • IdStorageTargets_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>> GetStorageTargetAsync (string storageTargetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetStorageTargetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>>
override this.GetStorageTargetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageCache.StorageTargetResource>>
Public Overridable Function GetStorageTargetAsync (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 era esperado que não estivesse vazio.

storageTargetName é nulo.

Aplica-se a