Class MetaFieldCollection
Summary description for MetaFieldCollection.
Inherited Members
Namespace: Mediachase.MetaDataPlus.Configurator
Assembly: Mediachase.MetaDataPlus.dll
Version: 14.26.0Syntax
public class MetaFieldCollection : IndexedCollectionBase<MetaField>, IEnumerable<MetaField>, IEnumerable
Constructors
MetaFieldCollection(MetaClass)
Initializes a new instance of the MetaFieldCollection class.
Declaration
public MetaFieldCollection(MetaClass owner)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | owner |
Properties
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public virtual bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Owner
Sets the owner intended to be used in unit testing
Declaration
public MetaClass Owner { set; }
Property Value
Type | Description |
---|---|
MetaClass | The owner. |
Methods
Add(MetaField)
Adds the specified new item.
Declaration
public void Add(MetaField newItem)
Parameters
Type | Name | Description |
---|---|---|
MetaField | newItem | The new item. |
Contains(MetaField)
Determines whether the colleciton contains the specified item, based on the Id.
Declaration
public override bool Contains(MetaField item)
Parameters
Type | Name | Description |
---|---|---|
MetaField | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<MetaField> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<MetaField> | An System.Collections.Generic.IEnumerator<> that can be used to iterate through the collection. |
IndexOf(MetaField)
Gets the index of the item in the collection, based on the Id.
Declaration
public override int IndexOf(MetaField item)
Parameters
Type | Name | Description |
---|---|---|
MetaField | item | The item. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the matching item, or -1 if there was no match. |