Class PropertyTypeCollection
Inheritance
System.Object
System.Collections.ObjectModel.KeyedCollection<
System.String,
PropertyType>
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract]
public class PropertyTypeCollection : KeyedCollection<string, PropertyType>, IList<PropertyType>, ICollection<PropertyType>, IList, ICollection, IReadOnlyList<PropertyType>, IReadOnlyCollection<PropertyType>, IEnumerable<PropertyType>, IEnumerable, INotifyCollectionChanged, IDeepCloneable
Constructors
PropertyTypeCollection(IEnumerable<PropertyType>)
Declaration
public PropertyTypeCollection(IEnumerable<PropertyType> properties)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<PropertyType> |
properties |
|
Methods
ClearItems()
Declaration
protected override void ClearItems()
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 .
|
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
GetKeyForItem(PropertyType)
Declaration
protected override string GetKeyForItem(PropertyType item)
Parameters
Returns
Type |
Description |
System.String |
|
IndexOfKey(String)
Declaration
public int IndexOfKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Int32 |
|
InsertItem(Int32, PropertyType)
Declaration
protected override void InsertItem(int index, PropertyType item)
Parameters
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventArgs |
args |
|
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
RemoveItem(String)
Declaration
public void RemoveItem(string propertyTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
propertyTypeAlias |
|
SetItem(Int32, PropertyType)
Declaration
protected override void SetItem(int index, PropertyType item)
Parameters
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|