Свойство | Тип | Описание | |
---|---|---|---|
EnsureRolesLoadedIfAuthenticated | void |
Метод | Описание | |
---|---|---|
GetReadOnlyRoleNames ( ) : List |
Gets a list of the role names this user is within.
|
|
IsInAnyRole ( ) : bool |
Determines if this user has access to perform actions in any of the specified roles.
|
|
IsInRole ( string role ) : bool |
Determines if this user has access to perform actions of the specified role.
|
|
UserPrincipal ( ) : System |
Creates an anonymous principal
|
|
UserPrincipal ( |
Creates a principal from another identity
|
|
UserPrincipal ( |
Creates a principal from another principal
|
Метод | Описание | |
---|---|---|
EnsureRolesLoadedIfAuthenticated ( ) : void |
public IsInRole ( string role ) : bool | ||
role | string | The role name. Use a value from KnownRoles for /// standard role names. |
Результат | bool |
public UserPrincipal ( |
||
identity | ||
Результат | System |
public UserPrincipal ( |
||
principal | ||
authType | String | |
Результат | System |