Partilhar via


ShareSubscriptionCollection.GetAsync(String, CancellationToken) Método

Definição

Obter uma shareSubscription em uma conta

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}
  • IdShareSubscriptions_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ShareSubscriptionResource>> GetAsync (string shareSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ShareSubscriptionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ShareSubscriptionResource>>
Public Overridable Function GetAsync (shareSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ShareSubscriptionResource))

Parâmetros

shareSubscriptionName
String

O nome da shareSubscription.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

shareSubscriptionName é nulo.

Aplica-se a