Partager via


ProviderShareSubscriptionCollection.GetAsync Méthode

Définition

Obtenir un abonnement de partage dans un partage de fournisseur

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}
  • IdProviderShareSubscriptions_GetByShare d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ProviderShareSubscriptionResource>> GetAsync (string providerShareSubscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ProviderShareSubscriptionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.ProviderShareSubscriptionResource>>
Public Overridable Function GetAsync (providerShareSubscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ProviderShareSubscriptionResource))

Paramètres

providerShareSubscriptionId
String

Pour localiser shareSubscription.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

providerShareSubscriptionId est une chaîne vide et devait être non vide.

providerShareSubscriptionId a la valeur null.

S’applique à