Search Results for

    Show / Hide Table of Contents

    Class MySqlSimpleRoleProvider

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

    Inheritance
    System.Object
    System.Configuration.Provider.ProviderBase
    System.Web.Security.RoleProvider
    WebMatrix.WebData.SimpleRoleProvider
    MySqlSimpleRoleProvider
    Namespace: MySql.Web.Security
    Assembly: MySql.Web.dll
    Version: 9.3.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
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.ApplicationName

    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
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.AddUsersToRoles(System.String[], System.String[])

    CreateRole(String)

    Declaration
    public override void CreateRole(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.CreateRole(System.String)

    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
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.DeleteRole(System.String, 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[]
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.FindUsersInRole(System.String, System.String)

    GetAllRoles()

    Declaration
    public override string[] GetAllRoles()
    Returns
    Type Description
    System.String[]
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.GetAllRoles()

    GetRolesForUser(String)

    Declaration
    public override string[] GetRolesForUser(string username)
    Parameters
    Type Name Description
    System.String username
    Returns
    Type Description
    System.String[]
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.GetRolesForUser(System.String)

    GetUsersInRole(String)

    Declaration
    public override string[] GetUsersInRole(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Returns
    Type Description
    System.String[]
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.GetUsersInRole(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
    Overrides
    System.Configuration.Provider.ProviderBase.Initialize(System.String, System.Collections.Specialized.NameValueCollection)

    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
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.IsUserInRole(System.String, System.String)

    RemoveUsersFromRoles(String[], String[])

    Declaration
    public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    System.String[] usernames
    System.String[] roleNames
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.RemoveUsersFromRoles(System.String[], System.String[])

    RoleExists(String)

    Declaration
    public override bool RoleExists(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Returns
    Type Description
    System.Boolean
    Overrides
    WebMatrix.WebData.SimpleRoleProvider.RoleExists(System.String)
    In This Article
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.