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 SourceDictionaryService(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 SourceCalculatePath(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 |
| int | sourceId | The source identifier of the dictionary item. |
Returns
| Type | Description |
|---|---|
| string | The calculated path string. |