Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyTypeCollection

    Represents a collection of IPropertyType objects.

    Inheritance
    System.Object
    System.Collections.ObjectModel.Collection<IPropertyType>
    System.Collections.ObjectModel.KeyedCollection<System.String, IPropertyType>
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract]
    public class PropertyTypeCollection : KeyedCollection<string, IPropertyType>, IList<IPropertyType>, ICollection<IPropertyType>, IReadOnlyList<IPropertyType>, IReadOnlyCollection<IPropertyType>, IEnumerable<IPropertyType>, IList, ICollection, IEnumerable, INotifyCollectionChanged, IDeepCloneable

    Constructors

    View Source

    PropertyTypeCollection(Boolean)

    Declaration
    public PropertyTypeCollection(bool supportsPublishing)
    Parameters
    Type Name Description
    System.Boolean supportsPublishing
    View Source

    PropertyTypeCollection(Boolean, IEnumerable<IPropertyType>)

    Declaration
    public PropertyTypeCollection(bool supportsPublishing, IEnumerable<IPropertyType> properties)
    Parameters
    Type Name Description
    System.Boolean supportsPublishing
    IEnumerable<IPropertyType> properties

    Properties

    View Source

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    SupportsPublishing

    Declaration
    public bool SupportsPublishing { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    Add(IPropertyType)

    Declaration
    public void Add(IPropertyType item)
    Parameters
    Type Name Description
    IPropertyType item
    View Source

    ClearCollectionChangedEvents()

    Clears all CollectionChanged event handlers

    Declaration
    public void ClearCollectionChangedEvents()
    View Source

    ClearItems()

    Declaration
    protected override void ClearItems()
    View Source

    Contains(String)

    Determines whether this collection contains a Property whose alias matches the specified PropertyType.

    Declaration
    public bool Contains(string propertyAlias)
    Parameters
    Type Name Description
    System.String propertyAlias

    Alias of the PropertyType.

    Returns
    Type Description
    System.Boolean

    true if the collection contains the specified alias; otherwise, false.

    View Source

    DeepClone()

    Declaration
    public object DeepClone()
    Returns
    Type Description
    System.Object
    View Source

    GetKeyForItem(IPropertyType)

    Declaration
    protected override string GetKeyForItem(IPropertyType item)
    Parameters
    Type Name Description
    IPropertyType item
    Returns
    Type Description
    System.String
    View Source

    IndexOfKey(String)

    Declaration
    public int IndexOfKey(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Int32
    View Source

    InsertItem(Int32, IPropertyType)

    Declaration
    protected override void InsertItem(int index, IPropertyType item)
    Parameters
    Type Name Description
    System.Int32 index
    IPropertyType item
    View Source

    OnCollectionChanged(NotifyCollectionChangedEventArgs)

    Declaration
    protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs args
    View Source

    RemoveItem(Int32)

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    System.Int32 index
    View Source

    RemoveItem(String)

    Declaration
    public bool RemoveItem(string propertyTypeAlias)
    Parameters
    Type Name Description
    System.String propertyTypeAlias
    Returns
    Type Description
    System.Boolean
    View Source

    SetItem(Int32, IPropertyType)

    Declaration
    protected override void SetItem(int index, IPropertyType item)
    Parameters
    Type Name Description
    System.Int32 index
    IPropertyType item

    Events

    View Source

    CollectionChanged

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PropertyTypeCollection(Boolean)
      • PropertyTypeCollection(Boolean, IEnumerable<IPropertyType>)
    • Properties
      • IsReadOnly
      • SupportsPublishing
    • Methods
      • Add(IPropertyType)
      • ClearCollectionChangedEvents()
      • ClearItems()
      • Contains(String)
      • DeepClone()
      • GetKeyForItem(IPropertyType)
      • IndexOfKey(String)
      • InsertItem(Int32, IPropertyType)
      • OnCollectionChanged(NotifyCollectionChangedEventArgs)
      • RemoveItem(Int32)
      • RemoveItem(String)
      • SetItem(Int32, IPropertyType)
    • Events
      • CollectionChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX