Class BlockModelCollection<T>
Inheritance
System.Object
      System.Collections.ObjectModel.ReadOnlyCollection<T>
      Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public abstract class BlockModelCollection<T> : ReadOnlyCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : class, IBlockReference<IPublishedElement, IPublishedElement>Type Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
View SourceBlockModelCollection(IList<T>)
Declaration
protected BlockModelCollection(IList<T> list)Parameters
| Type | Name | Description | 
|---|---|---|
| IList<T> | list | 
Properties
View SourceItem[Guid]
Gets the BlockListItem with the specified content key.
Declaration
public T this[Guid contentKey] { get; }Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | contentKey | The content key. | 
Property Value
| Type | Description | 
|---|---|
| T | The BlockListItem. | 
Item[Udi]
Gets the BlockListItem with the specified content UDI.
Declaration
public T this[Udi contentUdi] { get; }Parameters
| Type | Name | Description | 
|---|---|---|
| Udi | contentUdi | The content UDI. | 
Property Value
| Type | Description | 
|---|---|
| T | The BlockListItem. |