• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPropertyCollection

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPropertyCollection : IDeepCloneable, INotifyCollectionChanged

    Properties

    View Source

    Count

    Declaration
    int Count { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    Item[Int32]

    Gets the property at the specified index.

    Declaration
    IProperty this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    IProperty
    View Source

    Item[String]

    Gets the property with the specified alias.

    Declaration
    IProperty this[string name] { get; }
    Parameters
    Type Name Description
    System.String name
    Property Value
    Type Description
    IProperty

    Methods

    View Source

    Add(IProperty)

    Adds or updates a property.

    Declaration
    void Add(IProperty property)
    Parameters
    Type Name Description
    IProperty property
    View Source

    ClearCollectionChangedEvents()

    Declaration
    void ClearCollectionChangedEvents()
    View Source

    Contains(String)

    Declaration
    bool Contains(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Boolean
    View Source

    EnsureCleanPropertyTypes(IEnumerable<IPropertyType>)

    Ensures that the collection does not contain properties not in the specified property types.

    Declaration
    void EnsureCleanPropertyTypes(IEnumerable<IPropertyType> propertyTypes)
    Parameters
    Type Name Description
    IEnumerable<IPropertyType> propertyTypes
    View Source

    EnsurePropertyTypes(IEnumerable<IPropertyType>)

    Ensures that the collection contains properties for the specified property types.

    Declaration
    void EnsurePropertyTypes(IEnumerable<IPropertyType> propertyTypes)
    Parameters
    Type Name Description
    IEnumerable<IPropertyType> propertyTypes
    View Source

    TryGetValue(String, out IProperty)

    Declaration
    bool TryGetValue(string propertyTypeAlias, out IProperty property)
    Parameters
    Type Name Description
    System.String propertyTypeAlias
    IProperty property
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Count
      • Item[Int32]
      • Item[String]
    • Methods
      • Add(IProperty)
      • ClearCollectionChangedEvents()
      • Contains(String)
      • EnsureCleanPropertyTypes(IEnumerable<IPropertyType>)
      • EnsurePropertyTypes(IEnumerable<IPropertyType>)
      • TryGetValue(String, out IProperty)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX