SqlRoleProvider Members
.NET Framework 3.0
Manages storage of role membership information for an ASP.NET application in a SQL Server database.
The following tables list the members exposed by the SqlRoleProvider type.
| Name | Description | |
|---|---|---|
| ApplicationName | Overridden. Gets or sets the name of the application for which to store and retrieve role information. |
| Description | Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).(inherited from ProviderBase) |
| Name | Gets the friendly name used to refer to the provider during configuration.(inherited from ProviderBase) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AddUsersToRoles | Overridden. Adds the specified user names to each of the specified roles. |
| CreateRole | Overridden. Adds a new role to the role database. |
| DeleteRole | Overridden. Removes a role from the role database. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| FindUsersInRole | Overridden. Gets an array of user names in a role where the user name contains the specified user name to match. |
| GetAllRoles | Overridden. Gets a list of all the roles for the application. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetRolesForUser | Overridden. Gets a list of the roles that a user is in. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| GetUsersInRole | Overridden. Gets a list of users in the specified role. |
| Initialize | Overridden. Initializes the SQL Server role provider with the property values specified in the ASP.NET application's configuration file. This method is not intended to be used directly from your code. |
| IsUserInRole | Overridden. Gets a value indicating whether the specified user is in the specified role. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| RemoveUsersFromRoles | Overridden. Removes the specified user names from the specified roles. |
| RoleExists | Overridden. Gets a value indicating whether the specified role name already exists in the role database. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
Reference
SqlRoleProvider ClassSystem.Web.Security Namespace
Other Resources
Understanding Role ManagementCommunity Additions
ADD
Show: