C# Class Identity.IPrincipalExtension

显示文件 Open project: Neilski/URF-Identity

Public Methods

Method 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 method

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
return bool