SimpleRoleProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides basic role-management functionality.
public class SimpleRoleProvider : System.Web.Security.RoleProvider
type SimpleRoleProvider = class
inherit RoleProvider
Public Class SimpleRoleProvider
Inherits RoleProvider
- Inheritance
-
SimpleRoleProvider
Constructors
SimpleRoleProvider() |
Initializes a new instance of the SimpleRoleProvider class. |
SimpleRoleProvider(RoleProvider) |
Initializes a new instance of the SimpleRoleProvider class by using the specified role provider. |
Properties
ApplicationName |
Gets or sets the name of the application to store and retrieve role information for. |
CasingBehavior |
Gets or sets the SimpleMembershipProviderCasingBehavior for this provider. |
UserIdColumn |
Gets the name of the database column that contains user IDs. |
UserNameColumn |
Gets the name of the database column that contains user names. |
UserTableName |
Gets the name of the database table that contains user information. |
Methods
AddUsersToRoles(String[], String[]) |
Adds the specified user names to the specified roles. |
CreateRole(String) |
Adds a new role. |
DeleteRole(String, Boolean) |
Deletes the specified role. |
FindUsersInRole(String, String) |
Returns all of the specified users who are in the specified role. |
GetAllRoles() |
Returns a list of all roles. |
GetRolesForUser(String) |
Returns a list of the roles that a specified user is in. |
GetUsersInRole(String) |
Returns the user names that are in the specified role. |
IsUserInRole(String, String) |
Returns a value that indicates whether the specified user is in the specified role. |
RemoveUsersFromRoles(String[], String[]) |
Removes the specified user names from the specified roles. |
RoleExists(String) |
Returns a value that indicates whether a specified role exists. |