IPrincipal.IsInRole(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le principal actuel appartient au rôle spécifié.
public:
bool IsInRole(System::String ^ role);
public bool IsInRole(string role);
abstract member IsInRole : string -> bool
Public Function IsInRole (role As String) As Boolean
Paramètres
- role
- String
Nom du rôle pour lequel vérifier l’appartenance.
Retours
true si le principal actuel est membre du rôle spécifié ; sinon, false.