Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMembershipRoleService<T>

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMembershipRoleService<out T> where T : class, IMembershipUser
    Type Parameters
    Name Description
    T

    Methods

    View Source

    AddRole(string)

    Declaration
    void AddRole(string roleName)
    Parameters
    Type Name Description
    string roleName
    View Source

    AssignRole(int, string)

    Declaration
    void AssignRole(int memberId, string roleName)
    Parameters
    Type Name Description
    int memberId
    string roleName
    View Source

    AssignRole(string, string)

    Declaration
    void AssignRole(string username, string roleName)
    Parameters
    Type Name Description
    string username
    string roleName
    View Source

    AssignRoles(int[], string[])

    Declaration
    void AssignRoles(int[] memberIds, string[] roleNames)
    Parameters
    Type Name Description
    int[] memberIds
    string[] roleNames
    View Source

    AssignRoles(string[], string[])

    Declaration
    void AssignRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    string[] usernames
    string[] roleNames
    View Source

    DeleteRole(string, bool)

    Declaration
    bool DeleteRole(string roleName, bool throwIfBeingUsed)
    Parameters
    Type Name Description
    string roleName
    bool throwIfBeingUsed
    Returns
    Type Description
    bool
    View Source

    DissociateRole(int, string)

    Declaration
    void DissociateRole(int memberId, string roleName)
    Parameters
    Type Name Description
    int memberId
    string roleName
    View Source

    DissociateRole(string, string)

    Declaration
    void DissociateRole(string username, string roleName)
    Parameters
    Type Name Description
    string username
    string roleName
    View Source

    DissociateRoles(int[], string[])

    Declaration
    void DissociateRoles(int[] memberIds, string[] roleNames)
    Parameters
    Type Name Description
    int[] memberIds
    string[] roleNames
    View Source

    DissociateRoles(string[], string[])

    Declaration
    void DissociateRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    string[] usernames
    string[] roleNames
    View Source

    FindMembersInRole(string, string, StringPropertyMatchType)

    Declaration
    IEnumerable<out T> FindMembersInRole(string roleName, string usernameToMatch, StringPropertyMatchType matchType = StringPropertyMatchType.StartsWith)
    Parameters
    Type Name Description
    string roleName
    string usernameToMatch
    StringPropertyMatchType matchType
    Returns
    Type Description
    IEnumerable<T>
    View Source

    GetAllRoles()

    Declaration
    IEnumerable<IMemberGroup> GetAllRoles()
    Returns
    Type Description
    IEnumerable<IMemberGroup>
    View Source

    GetAllRoles(int)

    Declaration
    IEnumerable<string> GetAllRoles(int memberId)
    Parameters
    Type Name Description
    int memberId
    Returns
    Type Description
    IEnumerable<string>
    View Source

    GetAllRoles(string)

    Declaration
    IEnumerable<string> GetAllRoles(string username)
    Parameters
    Type Name Description
    string username
    Returns
    Type Description
    IEnumerable<string>
    View Source

    GetAllRolesIds()

    Declaration
    IEnumerable<int> GetAllRolesIds()
    Returns
    Type Description
    IEnumerable<int>
    View Source

    GetAllRolesIds(int)

    Declaration
    IEnumerable<int> GetAllRolesIds(int memberId)
    Parameters
    Type Name Description
    int memberId
    Returns
    Type Description
    IEnumerable<int>
    View Source

    GetAllRolesIds(string)

    Declaration
    IEnumerable<int> GetAllRolesIds(string username)
    Parameters
    Type Name Description
    string username
    Returns
    Type Description
    IEnumerable<int>
    View Source

    GetMembersInRole(string)

    Declaration
    IEnumerable<out T> GetMembersInRole(string roleName)
    Parameters
    Type Name Description
    string roleName
    Returns
    Type Description
    IEnumerable<T>
    View Source

    ReplaceRoles(int[], string[])

    Declaration
    void ReplaceRoles(int[] memberIds, string[] roleNames)
    Parameters
    Type Name Description
    int[] memberIds
    string[] roleNames
    View Source

    ReplaceRoles(string[], string[])

    Declaration
    void ReplaceRoles(string[] usernames, string[] roleNames)
    Parameters
    Type Name Description
    string[] usernames
    string[] roleNames
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX