Class BlockListModel
The strongly typed model for the Block List editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "blockList", Namespace = "")]
public class BlockListModel : BlockModelCollection<BlockListItem>, IList<BlockListItem>, ICollection<BlockListItem>, IReadOnlyList<BlockListItem>, IReadOnlyCollection<BlockListItem>, IEnumerable<BlockListItem>, IList, ICollection, IEnumerable
Constructors
View SourceBlockListModel(IList<BlockListItem>)
Initializes a new instance of the BlockListModel class.
Declaration
public BlockListModel(IList<BlockListItem> list)
Parameters
Type | Name | Description |
---|---|---|
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. |