Compartilhar via


DataShareAccountResource.GetShareSubscriptionAsync Método

Definição

Obter um shareSubscription em uma conta

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

Parâmetros

shareSubscriptionName
String

O nome do shareSubscription.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

shareSubscriptionName é nulo.

Aplica-se a