Compartilhar via


AuthorizationRules.TryGetSharedAccessAuthorizationRule Método

Definição

Obtém a regra associada à chave especificada.

public bool TryGetSharedAccessAuthorizationRule (string keyName, out Microsoft.Azure.NotificationHubs.Messaging.SharedAccessAuthorizationRule rule);
member this.TryGetSharedAccessAuthorizationRule : string * SharedAccessAuthorizationRule -> bool
Public Function TryGetSharedAccessAuthorizationRule (keyName As String, ByRef rule As SharedAccessAuthorizationRule) As Boolean

Parâmetros

keyName
String

O nome da chave.

rule
SharedAccessAuthorizationRule

A regra associada à chave especificada.

Retornos

true se o AuthorizationRules contiver um elemento com a chave especificada; caso contrário, false.

Aplica-se a