Compartilhar via


StorageSyncExtensions.GetStorageSyncServiceAsync Método

Definição

Obtenha um determinado StorageSyncService.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}
  • IdStorageSyncServices_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageSync.StorageSyncServiceResource>> GetStorageSyncServiceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string storageSyncServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageSyncServiceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageSync.StorageSyncServiceResource>>
<Extension()>
Public Function GetStorageSyncServiceAsync (resourceGroupResource As ResourceGroupResource, storageSyncServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StorageSyncServiceResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

storageSyncServiceName
String

Nome do recurso do Serviço de Sincronização de Armazenamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

storageSyncServiceName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

storageSyncServiceName é nulo.

Aplica-se a