C# 클래스 vlko.core.Authentication.UserPrincipal

상속: IPrincipal
파일 보기 프로젝트 열기: vlko/vlko 1 사용 예제들

공개 메소드들

메소드 설명
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