Class MetaFieldCollection
Represents collection of meta field.
Inheritance
Implements
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 13.30.0Syntax
public class MetaFieldCollection : CollectionBase, IList, ICollection, IEnumerable, IChangeTracking
Properties
Item[Int32]
Gets the MetaField at the specified index.
Declaration
public MetaField this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
MetaField |
Item[String]
Gets the MetaField with the specified name.
Declaration
public MetaField this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
MetaField |
Methods
Add(MetaField)
Adds the internal.
Declaration
public void Add(MetaField field)
Parameters
Type | Name | Description |
---|---|---|
MetaField | field | The field. |
Contains(MetaField)
Determines whether this collection contains the specified field.
Declaration
public bool Contains(MetaField field)
Parameters
Type | Name | Description |
---|---|---|
MetaField | field | The field. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Contains(String)
Determines whether this collection contains the specified name.
Declaration
public bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetByDataType(McDataType)
Gets the type of the by data.
Declaration
public MetaField[] GetByDataType(McDataType dataType)
Parameters
Type | Name | Description |
---|---|---|
McDataType | dataType | Type of the data. |
Returns
Type | Description |
---|---|
MetaField[] |
GetByOriginalDataType(McDataType)
Gets the type of the by original data.
Declaration
public MetaField[] GetByOriginalDataType(McDataType dataType)
Parameters
Type | Name | Description |
---|---|---|
McDataType | dataType | Type of the data. |
Returns
Type | Description |
---|---|
MetaField[] |
IndexOf(MetaField)
Indexes the of.
Declaration
public int IndexOf(MetaField field)
Parameters
Type | Name | Description |
---|---|---|
MetaField | field | The field. |
Returns
Type | Description |
---|---|
System.Int32 |
IndexOf(String)
Gets the index of meta field with the given name.
Declaration
public int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the meta field. |
Returns
Type | Description |
---|---|
System.Int32 |
OnClear()
Performs additional custom processes when clearing the contents of the System.Collections.CollectionBase instance.
Declaration
protected override void OnClear()
Overrides
OnInsertComplete(Int32, Object)
Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which to insert value. |
System.Object | value | The new value of the element at index. |
Overrides
OnRemoveComplete(Int32, Object)
Performs additional custom processes after removing an element from the System.Collections.CollectionBase instance.
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which value can be found. |
System.Object | value | The value of the element to remove from index. |
Overrides
OnSetComplete(Int32, Object, Object)
Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which oldValue can be found. |
System.Object | oldValue | The value to replace with newValue. |
System.Object | newValue | The new value of the element at index. |
Overrides
Remove(MetaField)
Removes the specified meta class.
Declaration
public void Remove(MetaField field)
Parameters
Type | Name | Description |
---|---|---|
MetaField | field | The meta class. |
Remove(String)
Removes the specified name.
Declaration
public void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Explicit Interface Implementations
IChangeTracking.AcceptChanges()
Declaration
void IChangeTracking.AcceptChanges()
IChangeTracking.IsChanged
Declaration
bool IChangeTracking.IsChanged { get; }
Returns
Type | Description |
---|---|
System.Boolean |