C# Class vlko.core.Roots.User

Inheritance: IIdentity
Mostra file Open project: vlko/vlko Class Usage Examples

Public Methods

Method Description
IsAdmin ( ) : bool

Determines whether this instance is admin.

IsInRole ( string role ) : bool

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

Method Details

IsAdmin() public method

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

IsInRole() public method

Determines whether [is user in role] [the specified role].
public IsInRole ( string role ) : bool
role string The role.
return bool