Freigeben über


NotificationHubAuthorizationRuleResource.RegenerateKeysAsync Methode

Definition

Generiert die primären/sekundären Schlüssel für die NotificationHub-Autorisierungsregel

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys
  • Vorgang 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))

Parameter

notificationHubPolicyKey
NotificationHubPolicyKey

Parameter, die angegeben werden, um den NotificationHub-Autorisierungsregelschlüssel neu zu generieren.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

notificationHubPolicyKey ist NULL.

Gilt für: