System.Web.Security.RoleProvider Members

The members of System.Web.Security.RoleProvider are listed below.

See Also: Inherited members from System.Configuration.Provider.ProviderBase

Protected Constructors

Initializes a new instance of the System.Web.Security.RoleProvider class.

Public Properties

abstract
ApplicationNamestring.

Gets or sets the name of the application to store and retrieve role information for.

Public Methods

abstract
AddUsersToRoles(string[], string[])

Adds the specified user names to the specified roles for the configured applicationName.

abstract
CreateRole(string)

Adds a new role to the data source for the configured applicationName.

abstract
DeleteRole(string, bool) : bool

Removes a role from the data source for the configured applicationName.

abstract
FindUsersInRole(string, string) : string[]

Gets an array of user names in a role where the user name contains the specified user name to match.

abstract
GetAllRoles() : string[]

Gets a list of all the roles for the configured applicationName.

abstract
GetRolesForUser(string) : string[]

Gets a list of the roles that a specified user is in for the configured applicationName.

abstract
GetUsersInRole(string) : string[]

Gets a list of users in the specified role for the configured applicationName.

abstract
IsUserInRole(string, string) : bool

Gets a value indicating whether the specified user is in the specified role for the configured applicationName.

abstract
RemoveUsersFromRoles(string[], string[])

Removes the specified user names from the specified roles for the configured applicationName.

abstract
RoleExists(string) : bool

Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.