Langue

ContextUtil.IsCallerInRole(String) Méthode

Définition

Détermine si l’appelant se trouve dans le rôle spécifié.

public:
 static bool IsCallerInRole(System::String ^ role);
public static bool IsCallerInRole(string role);
static member IsCallerInRole : string -> bool
Public Shared Function IsCallerInRole (role As String) As Boolean

Paramètres

role
String

Nom du rôle à vérifier.

Retours

true si l’appelant se trouve dans le rôle spécifié ; sinon, false.

Exceptions

Aucun contexte COM+ n’est disponible.

S’applique à