Метод | Описание | |
---|---|---|
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. |
Результат | bool |
public UserPrincipal ( |
||
user | The user. | |
Результат | System |