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