NotificationHubsOperationsExtensions.RegenerateKeysAsync(INotificationHubsOperations, String, String, String, String, PolicykeyResource, CancellationToken) Method

Definition

Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.NotificationHubs.Models.ResourceListKeys> RegenerateKeysAsync (this Microsoft.Azure.Management.NotificationHubs.INotificationHubsOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, Microsoft.Azure.Management.NotificationHubs.Models.PolicykeyResource parameters, System.Threading.CancellationToken cancellationToken = null);
static member RegenerateKeysAsync : Microsoft.Azure.Management.NotificationHubs.INotificationHubsOperations * string * string * string * string * Microsoft.Azure.Management.NotificationHubs.Models.PolicykeyResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.NotificationHubs.Models.ResourceListKeys>

Parameters

operations
INotificationHubsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

namespaceName
System.String

The namespace name.

notificationHubName
System.String

The notification hub name.

authorizationRuleName
System.String

The connection string of the NotificationHub for the specified authorizationRule.

parameters
PolicykeyResource

Parameters supplied to regenerate the NotificationHub Authorization Rule Key.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ResourceListKeys>

Applies to