View Source
Class PropertyTypeCollection
Inheritance
System.Object
System.Collections.ObjectModel.KeyedCollection<
System.String,
PropertyType>
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
View Source
PropertyTypeCollection(Boolean, IEnumerable<PropertyType>)
Declaration
public PropertyTypeCollection(bool supportsPublishing, IEnumerable<PropertyType> properties)
Parameters
Type |
Name |
Description |
System.Boolean |
supportsPublishing |
|
System.Collections.Generic.IEnumerable<PropertyType> |
properties |
|
Properties
View Source
SupportsPublishing
Declaration
public bool SupportsPublishing { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
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(PropertyType)
Declaration
protected override string GetKeyForItem(PropertyType 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, PropertyType)
Declaration
protected override void InsertItem(int index, PropertyType 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, PropertyType)
Declaration
protected override void SetItem(int index, PropertyType item)
Parameters
Events
View Source
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|