Class MySqlSimpleRoleProvider
Manages storage of simple role membership information for an ASP.NET application in a MySQL database.
Inheritance
System.Object
MySqlSimpleRoleProvider
Assembly: MySql.Web.dll
Version: 9.1.0
Syntax
public class MySqlSimpleRoleProvider : SimpleRoleProvider
Constructors
MySqlSimpleRoleProvider()
Declaration
public MySqlSimpleRoleProvider()
MySqlSimpleRoleProvider(RoleProvider)
Declaration
public MySqlSimpleRoleProvider(RoleProvider previousProvider)
Parameters
Type |
Name |
Description |
System.Web.Security.RoleProvider |
previousProvider |
|
Properties
ApplicationName
Declaration
public override string ApplicationName { get; set; }
Property Value
Type |
Description |
System.String |
|
ConnectionString
Gets or sets the connection string.
Declaration
public string ConnectionString { get; set; }
Property Value
Type |
Description |
System.String |
|
ConnectionStringName
Gets or sets the name associated to the connection string when stored in the configuration manager.
Declaration
public string ConnectionStringName { get; set; }
Property Value
Type |
Description |
System.String |
|
UserIdColumn
Gets the name of the column storing the user ids.
Declaration
public string UserIdColumn { get; }
Property Value
Type |
Description |
System.String |
|
UserNameColumn
Gets the name of the column storing the user names.
Declaration
public string UserNameColumn { get; }
Property Value
Type |
Description |
System.String |
|
UserTableName
Gets the name of the table storing user information.
Declaration
public string UserTableName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
AddUsersToRoles(String[], String[])
Declaration
public override void AddUsersToRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|
CreateRole(String)
Declaration
public override void CreateRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
DeleteRole(String, Boolean)
Declaration
public override bool DeleteRole(string roleName, bool throwOnPopulatedRole)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
System.Boolean |
throwOnPopulatedRole |
|
Returns
Type |
Description |
System.Boolean |
|
FindUsersInRole(String, String)
Declaration
public override string[] FindUsersInRole(string roleName, string usernameToMatch)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
System.String |
usernameToMatch |
|
Returns
Type |
Description |
System.String[] |
|
GetAllRoles()
Declaration
public override string[] GetAllRoles()
Returns
Type |
Description |
System.String[] |
|
GetRolesForUser(String)
Declaration
public override string[] GetRolesForUser(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
System.String[] |
|
GetUsersInRole(String)
Declaration
public override string[] GetUsersInRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Type |
Description |
System.String[] |
|
Initialize(String, NameValueCollection)
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Collections.Specialized.NameValueCollection |
config |
|
IsUserInRole(String, String)
Declaration
public override bool IsUserInRole(string username, string roleName)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
roleName |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveUsersFromRoles(String[], String[])
Declaration
public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|
RoleExists(String)
Declaration
public override bool RoleExists(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Type |
Description |
System.Boolean |
|