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