Freigeben über


NotificationHubAuthorizationRuleCollection.Get Methode

Definition

Ruft eine Autorisierungsregel für einen NotificationHub anhand des Namens ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}
  • Vorgangs-IdNotificationHubs_GetAuthorizationRule
public virtual Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource> Get (string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NotificationHubs.NotificationHubAuthorizationRuleResource>
Public Overridable Function Get (authorizationRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NotificationHubAuthorizationRuleResource)

Parameter

authorizationRuleName
String

Name der Autorisierungsregel.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

authorizationRuleName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

authorizationRuleName ist NULL.

Gilt für: