Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMemberGroupRepository

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMemberGroupRepository : IReadWriteQueryRepository<int, IMemberGroup>, IReadRepository<int, IMemberGroup>, IWriteRepository<IMemberGroup>, IQueryRepository<IMemberGroup>, IRepository

    Methods

    View Source

    AssignRoles(Int32[], String[])

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

    CreateIfNotExists(String)

    Creates the new member group if it doesn't already exist

    Declaration
    IMemberGroup CreateIfNotExists(string roleName)
    Parameters
    Type Name Description
    System.String roleName
    Returns
    Type Description
    IMemberGroup
    View Source

    DissociateRoles(Int32[], String[])

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

    Get(Guid)

    Gets a member group by it's uniqueId

    Declaration
    IMemberGroup Get(Guid uniqueId)
    Parameters
    Type Name Description
    Guid uniqueId
    Returns
    Type Description
    IMemberGroup
    View Source

    GetByName(String)

    Gets a member group by it's name

    Declaration
    IMemberGroup GetByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    IMemberGroup
    View Source

    GetMemberGroupsForMember(Int32)

    Returns the member groups for a given member

    Declaration
    IEnumerable<IMemberGroup> GetMemberGroupsForMember(int memberId)
    Parameters
    Type Name Description
    System.Int32 memberId
    Returns
    Type Description
    IEnumerable<IMemberGroup>
    View Source

    GetMemberGroupsForMember(String)

    Returns the member groups for a given member

    Declaration
    IEnumerable<IMemberGroup> GetMemberGroupsForMember(string username)
    Parameters
    Type Name Description
    System.String username
    Returns
    Type Description
    IEnumerable<IMemberGroup>
    View Source

    ReplaceRoles(Int32[], String[])

    Declaration
    void ReplaceRoles(int[] memberIds, string[] roleNames)
    Parameters
    Type Name Description
    System.Int32[] memberIds
    System.String[] roleNames
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AssignRoles(Int32[], String[])
      • CreateIfNotExists(String)
      • DissociateRoles(Int32[], String[])
      • Get(Guid)
      • GetByName(String)
      • GetMemberGroupsForMember(Int32)
      • GetMemberGroupsForMember(String)
      • ReplaceRoles(Int32[], String[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX