This documentation is archived and is not being maintained.

SqlRoleProvider Members

Manages storage of role membership information for an ASP.NET application in a SQL Server database.

The SqlRoleProvider type exposes the following members.

  NameDescription
Public method SqlRoleProvider Creates an instance of the SqlRoleProvider class.
Top

  NameDescription
Public method AddUsersToRoles Adds the specified user names to each of the specified roles. (Overrides RoleProvider.AddUsersToRoles(String[], String[]).)
Public method CreateRole Adds a new role to the role database. (Overrides RoleProvider.CreateRole(String).)
Public method DeleteRole Removes a role from the role database. (Overrides RoleProvider.DeleteRole(String, Boolean).)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindUsersInRole Gets an array of user names in a role where the user name contains the specified user name to match. (Overrides RoleProvider.FindUsersInRole(String, String).)
Public method GetAllRoles Gets a list of all the roles for the application. (Overrides RoleProvider.GetAllRoles().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRolesForUser Gets a list of the roles that a user is in. (Overrides RoleProvider.GetRolesForUser(String).)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GetUsersInRole Gets a list of users in the specified role. (Overrides RoleProvider.GetUsersInRole(String).)
Public method Initialize 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. (Overrides ProviderBase.Initialize(String, NameValueCollection).)
Public method IsUserInRole Gets a value indicating whether the specified user is in the specified role. (Overrides RoleProvider.IsUserInRole(String, String).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveUsersFromRoles Removes the specified user names from the specified roles. (Overrides RoleProvider.RemoveUsersFromRoles(String[], String[]).)
Public method RoleExists Gets a value indicating whether the specified role name already exists in the role database. (Overrides RoleProvider.RoleExists(String).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property ApplicationName Gets or sets the name of the application for which to store and retrieve role information. (Overrides RoleProvider.ApplicationName.)
Public property Description Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). (Inherited from ProviderBase.)
Public property Name Gets the friendly name used to refer to the provider during configuration. (Inherited from ProviderBase.)
Top
Show: