View Source
Interface IPropertyCollection
Assembly: Umbraco.Core.dll
Syntax
public interface IPropertyCollection : IDeepCloneable
Properties
View Source
Count
Declaration
Property Value
View Source
this[int]
Gets the property at the specified index.
Declaration
IProperty? this[int index] { get; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
View Source
this[string]
Gets the property with the specified alias.
Declaration
IProperty? this[string name] { get; }
Parameters
| Type |
Name |
Description |
| string |
name |
|
Property Value
Methods
View Source
Add(IProperty)
Adds or updates a property.
Declaration
void Add(IProperty property)
Parameters
View Source
ClearCollectionChangedEvents()
Declaration
void ClearCollectionChangedEvents()
View Source
Contains(string)
Declaration
bool Contains(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
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
View Source
EnsurePropertyTypes(IEnumerable<IPropertyType>)
Ensures that the collection contains properties for the specified property types.
Declaration
void EnsurePropertyTypes(IEnumerable<IPropertyType> propertyTypes)
Parameters
View Source
TryGetValue(string, out IProperty)
Declaration
bool TryGetValue(string propertyTypeAlias, out IProperty property)
Parameters
| Type |
Name |
Description |
| string |
propertyTypeAlias |
|
| IProperty |
property |
|
Returns