Class BlockListItem
Represents a layout item for the Block List editor.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public class BlockListItem : object, IBlockReference<IPublishedElement>, IBlockReference
Constructors
View SourceBlockListItem(Udi, IPublishedElement, Udi, IPublishedElement)
Initializes a new instance of the Block
Declaration
public BlockListItem(Udi contentUdi, IPublishedElement content, Udi settingsUdi, IPublishedElement settings)
Parameters
Type | Name | Description |
---|---|---|
Udi | contentUdi | The content UDI. |
IPublished |
content | The content. |
Udi | settingsUdi | The settings UDI. |
IPublished |
settings | The settings. |
Properties
View SourceContent
Gets the content.
Declaration
public IPublishedElement Content { get; }
Property Value
Type | Description |
---|---|
IPublished |
The content. |
ContentUdi
Gets the content UDI.
Declaration
public Udi ContentUdi { get; }
Property Value
Type | Description |
---|---|
Udi | The content UDI. |
Settings
Gets the settings.
Declaration
public IPublishedElement Settings { get; }
Property Value
Type | Description |
---|---|
IPublished |
The settings. |
SettingsUdi
Gets the settings UDI.
Declaration
public Udi SettingsUdi { get; }
Property Value
Type | Description |
---|---|
Udi | The settings UDI. |