Partilhar via


NotificationHubAuthorizationRuleResource.RegenerateKeysAsync Método

Definição

Regenera as chaves primárias/secundárias para a regra de autorização do NotificationHub

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

Parâmetros

notificationHubPolicyKey
NotificationHubPolicyKey

Parâmetros fornecidos para regenerar a chave de regra de autorização do NotificationHub.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

notificationHubPolicyKey é nulo.

Aplica-se a