Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    BlockModelCollection(IList<T>)

    Declaration
    protected BlockModelCollection(IList<T> list)
    Parameters
    Type Name Description
    IList<T> list

    Properties

    View Source

    Item[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.

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockModelCollection(IList<T>)
    • Properties
      • Item[Guid]
      • Item[Udi]
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX