Class DictionaryItem
Represents a Dictionary Item
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class DictionaryItem : EntityBase, IDictionaryItem, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceDictionaryItem(Guid?, string)
Initializes a new instance of the DictionaryItem class with a parent and key.
Declaration
public DictionaryItem(Guid? parentId, string itemKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | parentId | The unique identifier of the parent dictionary item. |
| string | itemKey | The key for the dictionary item. |
DictionaryItem(string)
Initializes a new instance of the DictionaryItem class with the specified key.
Declaration
public DictionaryItem(string itemKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemKey | The key for the dictionary item. |
Properties
View SourceItemKey
Gets or sets the Key for the Dictionary Item
Declaration
[DataMember]
public string ItemKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentId
Gets or Sets the Parent Id of the Dictionary Item
Declaration
[DataMember]
public Guid? ParentId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Translations
Gets or sets a list of translations for the Dictionary Item
Declaration
[DataMember]
public IEnumerable<IDictionaryTranslation> Translations { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IDictionaryTranslation> |