Partager via


NotificationHubResource.GetNotificationHubAuthorizationRuleAsync Méthode

Définition

Obtient une règle d’autorisation pour un Objet NotificationHub par nom.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}
  • IdNotificationHubs_GetAuthorizationRule d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource>> GetNotificationHubAuthorizationRuleAsync (string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNotificationHubAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource>>
override this.GetNotificationHubAuthorizationRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource>>
Public Overridable Function GetNotificationHubAuthorizationRuleAsync (authorizationRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NotificationHubAuthorizationRuleResource))

Paramètres

authorizationRuleName
String

nom de la règle d’autorisation.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

authorizationRuleName a la valeur null.

S’applique à