C# Класс Identity.IPrincipalExtension

Показать файл Открыть проект

Открытые методы

Метод Описание
IsAndNot ( this user, string isRole, string notRole ) : bool

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

Описание методов

IsAndNot() публичный статический Метод

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
Результат bool