Search Results for

    Show / Hide Table of Contents
    View Source

    Class DictionaryService

    Provides helper services for dictionary-related operations, such as path calculation.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class DictionaryService : IDictionaryService

    Constructors

    View Source

    DictionaryService(ILocalizationService)

    Initializes a new instance of the DictionaryService class.

    Declaration
    public DictionaryService(ILocalizationService localizationService)
    Parameters
    Type Name Description
    ILocalizationService localizationService

    The localization service.

    Methods

    View Source

    CalculatePath(Guid?, int)

    Calculates the hierarchical path for a dictionary item.

    Declaration
    public string CalculatePath(Guid? parentId, int sourceId)
    Parameters
    Type Name Description
    Guid? parentId

    The unique identifier of the parent dictionary item, or null for root items.

    int sourceId

    The source identifier of the dictionary item.

    Returns
    Type Description
    string

    The calculated path string.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX