Search Results for

    Show / Hide Table of Contents
    View Source

    Class SectionService

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class SectionService : ISectionService

    Constructors

    View Source

    SectionService(IUserService, SectionCollection)

    Declaration
    public SectionService(IUserService userService, SectionCollection sectionCollection)
    Parameters
    Type Name Description
    IUserService userService
    SectionCollection sectionCollection

    Methods

    View Source

    GetAllowedSections(Int32)

    Get the user group's allowed sections

    Declaration
    public IEnumerable<ISection> GetAllowedSections(int userId)
    Parameters
    Type Name Description
    System.Int32 userId
    Returns
    Type Description
    IEnumerable<ISection>
    View Source

    GetByAlias(String)

    Gets the application by its alias.

    Declaration
    public ISection GetByAlias(string appAlias)
    Parameters
    Type Name Description
    System.String appAlias

    The application alias.

    Returns
    Type Description
    ISection
    View Source

    GetSections()

    The cache storage for all applications

    Declaration
    public IEnumerable<ISection> GetSections()
    Returns
    Type Description
    IEnumerable<ISection>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SectionService(IUserService, SectionCollection)
    • Methods
      • GetAllowedSections(Int32)
      • GetByAlias(String)
      • GetSections()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX