C# Класс Candor.Security.UserPrincipal

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

Private Properties

Свойство Тип Описание
EnsureRolesLoadedIfAuthenticated void

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

Метод Описание
GetReadOnlyRoleNames ( ) : List

Gets a list of the role names this user is within.

IsInAnyRole ( ) : bool

Determines if this user has access to perform actions in any of the specified roles.

IsInRole ( string role ) : bool

Determines if this user has access to perform actions of the specified role.

UserPrincipal ( ) : System

Creates an anonymous principal

UserPrincipal ( UserIdentity identity ) : System

Creates a principal from another identity

UserPrincipal ( UserPrincipal principal, String authType ) : System

Creates a principal from another principal

Приватные методы

Метод Описание
EnsureRolesLoadedIfAuthenticated ( ) : void

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

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

Gets a list of the role names this user is within.
public GetReadOnlyRoleNames ( ) : List
Результат List

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

Determines if this user has access to perform actions in any of the specified roles.
public IsInAnyRole ( ) : bool
Результат bool

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

Determines if this user has access to perform actions of the specified role.
public IsInRole ( string role ) : bool
role string The role name. Use a value from KnownRoles for /// standard role names.
Результат bool

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

Creates an anonymous principal
public UserPrincipal ( ) : System
Результат System

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

Creates a principal from another identity
public UserPrincipal ( UserIdentity identity ) : System
identity UserIdentity
Результат System

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

Creates a principal from another principal
public UserPrincipal ( UserPrincipal principal, String authType ) : System
principal UserPrincipal
authType String
Результат System