Class BlockListModel
The strongly typed model for the Block List editor.
Namespace: Umbraco.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "blockList", Namespace = "")]
public class BlockListModel : ReadOnlyCollection<BlockListItem>, IList<BlockListItem>, ICollection<BlockListItem>, IList, ICollection, IReadOnlyList<BlockListItem>, IReadOnlyCollection<BlockListItem>, IEnumerable<BlockListItem>, IEnumerable
Constructors
View SourceBlockListModel(IList<BlockListItem>)
Initializes a new instance of the BlockListModel class.
Declaration
public BlockListModel(IList<BlockListItem> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<BlockListItem> | list | The list to wrap. |
Properties
View SourceEmpty
Gets the empty BlockListModel.
Declaration
public static BlockListModel Empty { get; }
Property Value
Type | Description |
---|---|
BlockListModel | The empty BlockListModel. |
Item[Guid]
Gets the BlockListItem with the specified content key.
Declaration
public BlockListItem this[Guid contentKey] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentKey | The content key. |
Property Value
Type | Description |
---|---|
BlockListItem | The BlockListItem. |
Item[Udi]
Gets the BlockListItem with the specified content UDI.
Declaration
public BlockListItem this[Udi contentUdi] { get; }
Parameters
Type | Name | Description |
---|---|---|
Udi | contentUdi | The content UDI. |
Property Value
Type | Description |
---|---|
BlockListItem | The BlockListItem. |