Compartilhar via


NotificationHubResource.GetNotificationHubAuthorizationRule Método

Definição

Obtém uma regra de autorização para um NotificationHub por nome.

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

Parâmetros

authorizationRuleName
String

nome da regra de autorização.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

authorizationRuleName é nulo.

Aplica-se a