View Source
Class BlockItemData
Represents a single block's data in raw form
Assembly: Umbraco.Core.dll
Syntax
public class BlockItemData
Constructors
View Source
BlockItemData()
Declaration
View Source
BlockItemData(Guid, Guid, string)
Declaration
public BlockItemData(Guid key, Guid contentTypeKey, string contentTypeAlias)
Parameters
| Type |
Name |
Description |
| Guid |
key |
|
| Guid |
contentTypeKey |
|
| string |
contentTypeAlias |
|
View Source
BlockItemData(Udi, Guid, string)
Declaration
[Obsolete("Use constructor that accepts GUID key instead. Will be removed in V18.")]
public BlockItemData(Udi udi, Guid contentTypeKey, string contentTypeAlias)
Parameters
| Type |
Name |
Description |
| Udi |
udi |
|
| Guid |
contentTypeKey |
|
| string |
contentTypeAlias |
|
Properties
View Source
ContentTypeAlias
not serialized, manually set and used during internally
Declaration
[JsonIgnore]
public string ContentTypeAlias { get; set; }
Property Value
View Source
ContentTypeKey
Declaration
public Guid ContentTypeKey { get; set; }
Property Value
View Source
Key
Declaration
public Guid Key { get; set; }
Property Value
View Source
RawPropertyValues
Declaration
[Obsolete("Use Properties instead. Will be removed in V18.")]
[JsonExtensionData]
public Dictionary<string, object?> RawPropertyValues { get; set; }
Property Value
| Type |
Description |
| Dictionary<string, object> |
|
View Source
Udi
Declaration
[Obsolete("Use Key instead. Will be removed in V18.")]
public Udi? Udi { get; set; }
Property Value
View Source
Values
Declaration
public IList<BlockPropertyValue> Values { get; set; }
Property Value