ContextUtil.IsCallerInRole(String) Méthode

Définition

Détermine si l'appelant est 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 est dans le rôle spécifié ; sinon false.

Exceptions

Aucun contexte COM+ disponible.

S’applique à