Compartir a través de


NotificationHubsOperationsExtensions.CreateOrUpdateAuthorizationRuleAsync Método

Definición

Crea o Novedades una regla de autorización para un NotificationHub

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.NotificationHubs.Models.SharedAccessAuthorizationRuleResource> CreateOrUpdateAuthorizationRuleAsync (this Microsoft.Azure.Management.NotificationHubs.INotificationHubsOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, Microsoft.Azure.Management.NotificationHubs.Models.SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAuthorizationRuleAsync : Microsoft.Azure.Management.NotificationHubs.INotificationHubsOperations * string * string * string * string * Microsoft.Azure.Management.NotificationHubs.Models.SharedAccessAuthorizationRuleCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.NotificationHubs.Models.SharedAccessAuthorizationRuleResource>
<Extension()>
Public Function CreateOrUpdateAuthorizationRuleAsync (operations As INotificationHubsOperations, resourceGroupName As String, namespaceName As String, notificationHubName As String, authorizationRuleName As String, parameters As SharedAccessAuthorizationRuleCreateOrUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SharedAccessAuthorizationRuleResource)

Parámetros

operations
INotificationHubsOperations

Grupo de operaciones para este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos.

namespaceName
String

El espacio de nombres.

notificationHubName
String

Nombre del centro de notificaciones.

authorizationRuleName
String

Nombre de la regla de autorización.

parameters
SharedAccessAuthorizationRuleCreateOrUpdateParameters

Regla de autorización de acceso compartido.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a