Search Results for

    Show / Hide Table of Contents
    View Source

    Class MembersRoleProvider

    Inheritance
    System.Object
    System.Web.Security.RoleProvider
    Namespace: Umbraco.Web.Security.Providers
    Assembly: Umbraco.Web.dll
    Syntax
    public class MembersRoleProvider : RoleProvider

    Constructors

    View Source

    MembersRoleProvider()

    Declaration
    public MembersRoleProvider()
    View Source

    MembersRoleProvider(IMembershipRoleService<IMember>)

    Declaration
    public MembersRoleProvider(IMembershipRoleService<IMember> roleService)
    Parameters
    Type Name Description
    IMembershipRoleService<IMember> roleService

    Properties

    View Source

    ApplicationName

    The name of the application using the custom role provider.

    Declaration
    public override string ApplicationName { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    AddUsersToRoles(String[], String[])

    Declaration
    public override void AddUsersToRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    System.String[] usernames
    System.String[] roleNames
    View Source

    CreateRole(String)

    Declaration
    public override void CreateRole(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    View Source

    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
    View Source

    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[]
    View Source

    GetAllRoles()

    Declaration
    public override string[] GetAllRoles()
    Returns
    Type Description
    System.String[]
    View Source

    GetRolesForUser(String)

    Declaration
    public override string[] GetRolesForUser(string username)
    Parameters
    Type Name Description
    System.String username
    Returns
    Type Description
    System.String[]
    View Source

    GetUsersInRole(String)

    Declaration
    public override string[] GetUsersInRole(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Returns
    Type Description
    System.String[]
    View Source

    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
    View Source

    RemoveUsersFromRoles(String[], String[])

    Declaration
    public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    System.String[] usernames
    System.String[] roleNames
    View Source

    RoleExists(String)

    Declaration
    public override bool RoleExists(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MembersRoleProvider()
      • MembersRoleProvider(IMembershipRoleService<IMember>)
    • Properties
      • ApplicationName
    • Methods
      • AddUsersToRoles(String[], String[])
      • CreateRole(String)
      • DeleteRole(String, Boolean)
      • FindUsersInRole(String, String)
      • GetAllRoles()
      • GetRolesForUser(String)
      • GetUsersInRole(String)
      • IsUserInRole(String, String)
      • RemoveUsersFromRoles(String[], String[])
      • RoleExists(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX