This documentation is archived and is not being maintained.
Roles Methods
Visual Studio 2010
The Roles type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddUsersToRole | Adds the specified users to the specified role. |
|
AddUsersToRoles | Adds the specified users to the specified roles. |
|
AddUserToRole | Adds the specified user to the specified role. |
|
AddUserToRoles | Adds the specified user to the specified roles. |
|
CreateRole | Adds a new role to the data source. |
|
DeleteCookie | Deletes the cookie where role names are cached. |
|
DeleteRole(String) | Removes a role from the data source. |
|
DeleteRole(String, Boolean) | Removes a role from the data source. |
|
FindUsersInRole | Gets a list of users in a specified role where the user name contains the specified user name to match. |
|
GetAllRoles | Gets a list of all the roles for the application. |
|
GetRolesForUser | Gets a list of the roles that the currently logged-on user is in. |
|
GetRolesForUser(String) | Gets a list of the roles that a user is in. |
|
GetUsersInRole | Gets a list of users in the specified role. |
|
IsUserInRole(String) | Gets a value indicating whether the currently logged-on user is in the specified role. |
|
IsUserInRole(String, String) | Gets a value indicating whether the specified user is in the specified role. |
|
RemoveUserFromRole | Removes the specified user from the specified role. |
|
RemoveUserFromRoles | Removes the specified user from the specified roles. |
|
RemoveUsersFromRole | Removes the specified users from the specified role. |
|
RemoveUsersFromRoles | Removes the specified user names from the specified roles. |
|
RoleExists | Gets a value indicating whether the specified role name already exists in the role data source. |
Show: