C# Класс vlko.core.Authentication.UserPrincipal

Наследование: IPrincipal
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsAdmin ( ) : bool

Determines whether this instance is admin.

IsInRole ( string roleName ) : bool

Determines whether [is in role] [the specified role name].

UserPrincipal ( User user ) : System

Initializes a new instance of the UserPrincipal class.

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

IsAdmin() публичный Метод

Determines whether this instance is admin.
public IsAdmin ( ) : bool
Результат bool

IsInRole() публичный Метод

Determines whether [is in role] [the specified role name].
public IsInRole ( string roleName ) : bool
roleName string Name of the role.
Результат bool

UserPrincipal() публичный Метод

Initializes a new instance of the UserPrincipal class.
public UserPrincipal ( User user ) : System
user vlko.core.Roots.User The user.
Результат System