View Source
Class PropertyTypeCollection
Inheritance
System.Object
System.Collections.ObjectModel.KeyedCollection<
System.String,
IPropertyType>
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
View Source
ClearCollectionChangedEvents()
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
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
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
Events
View Source
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|