C# Class vlko.core.Authentication.UserPrincipal

Inheritance: IPrincipal
ファイルを表示 Open project: vlko/vlko Class Usage Examples

Public Methods

Method Description
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.

Method Details

IsAdmin() public method

Determines whether this instance is admin.
public IsAdmin ( ) : bool
return bool

IsInRole() public method

Determines whether [is in role] [the specified role name].
public IsInRole ( string roleName ) : bool
roleName string Name of the role.
return bool

UserPrincipal() public method

Initializes a new instance of the UserPrincipal class.
public UserPrincipal ( User user ) : System
user vlko.core.Roots.User The user.
return System