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(IDictionaryItemService)
Initializes a new instance of the DictionaryService class.
Declaration
public DictionaryService(IDictionaryItemService dictionaryItemService)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionaryItemService | dictionaryItemService | The dictionary item service. |
Methods
View SourceCalculatePathAsync(Guid?, int)
Calculates the hierarchical path for a dictionary item.
Declaration
public Task<string> CalculatePathAsync(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 |
|---|---|
| Task<string> | The calculated path string. |