Click or drag to resize

MySQLRoleProvider Class

Manages storage of role membership information for an ASP.NET application in a MySQL database.
Inheritance Hierarchy

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 8.0.22
public sealed class MySQLRoleProvider : RoleProvider

The MySQLRoleProvider type exposes the following members.

Public methodMySQLRoleProvider
Initializes a new instance of the MySQLRoleProvider class
Public propertyCode exampleApplicationName
Gets or sets the name of the application to store and retrieve role information for.
(Overrides RoleProviderApplicationName.)
Public propertyDescription
Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).
(Inherited from ProviderBase.)
Public propertyName
Gets the friendly name used to refer to the provider during configuration.
(Inherited from ProviderBase.)
Public propertyCode exampleWriteExceptionsToEventLog
Gets or sets a value indicating whether exceptions should be written to the event log.
Public methodAddUsersToRoles
Adds the users to the specified roles.
(Overrides RoleProviderAddUsersToRoles(String, String).)
Public methodCreateRole
Creates the specified role.
(Overrides RoleProviderCreateRole(String).)
Public methodDeleteRole
Deletes the specified role.
(Overrides RoleProviderDeleteRole(String, Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindUsersInRole
Finds the users with the specified role.
(Overrides RoleProviderFindUsersInRole(String, String).)
Public methodGetAllRoles
Gets a list of all the roles for the configured applicationName.
(Overrides RoleProviderGetAllRoles.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRolesForUser
Gets a list of the roles that a specified user is in for the configured applicationName.
(Overrides RoleProviderGetRolesForUser(String).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUsersInRole
Gets the users with the specified role.
(Overrides RoleProviderGetUsersInRole(String).)
Public methodInitialize
Initializes the provider.
(Overrides ProviderBaseInitialize(String, NameValueCollection).)
Public methodIsUserInRole
Determines whether [is user in role] [the specified username].
(Overrides RoleProviderIsUserInRole(String, String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveUsersFromRoles
Removes the users from the specified roles.
(Overrides RoleProviderRemoveUsersFromRoles(String, String).)
Public methodRoleExists
Determines whether the role exists.
(Overrides RoleProviderRoleExists(String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also