Interface IHaveAdditionalData
Provides support for additional data.
Namespace: Umbraco.Core.Models.Entities
Assembly: Umbraco.Core.dll
Syntax
public interface IHaveAdditionalData
Remarks
Additional data are transient, not deep-cloned.
Properties
View SourceAdditionalData
Gets additional data for this entity.
Declaration
IDictionary<string, object> AdditionalData { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
Remarks
Can be empty, but never null. To avoid allocating, do not test for emptiness, but use HasAdditionalData instead.
HasAdditionalData
Determines whether this entity has additional data.
Declaration
bool HasAdditionalData { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Use this property to check for additional data without getting AdditionalData, to avoid allocating.