C# Class Identity.IPrincipalExtension

Afficher le fichier Open project: Neilski/URF-Identity

Méthodes publiques

Méthode Description
IsAndNot ( this user, string isRole, string notRole ) : bool

Checks if a User IS in one role and NOT in another role

Method Details

IsAndNot() public static méthode

Checks if a User IS in one role and NOT in another role
public static IsAndNot ( this user, string isRole, string notRole ) : bool
user this IPricipal object
isRole string Is in this role
notRole string Not in this role
Résultat bool