Method | Description | |
---|---|---|
IsAdmin ( ) : bool |
Determines whether this instance is admin.
|
|
IsInRole ( string roleName ) : bool |
Determines whether [is in role] [the specified role name].
|
|
UserPrincipal ( |
Initializes a new instance of the UserPrincipal class.
|
public IsInRole ( string roleName ) : bool | ||
roleName | string | Name of the role. |
return | bool |
public UserPrincipal ( |
||
user | The user. | |
return | System |