Class SchemaElementCollection
Represents schema element collection.
Inheritance
Namespace: Mediachase.BusinessFoundation.Data.Meta.Schema
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class SchemaElementCollection : Collection<SchemaElement>
Constructors
SchemaElementCollection()
Initializes a new instance of the SchemaElementCollection class.
Declaration
public SchemaElementCollection()
SchemaElementCollection(SchemaContainer)
Initializes a new instance of the SchemaElementCollection class.
Declaration
public SchemaElementCollection(SchemaContainer owner)
Parameters
Type | Name | Description |
---|---|---|
SchemaContainer | owner | The owner. |
Properties
Owner
Gets or sets the owner.
Declaration
protected SchemaContainer Owner { get; set; }
Property Value
Type | Description |
---|---|
SchemaContainer | The owner. |
Methods
ClearItems()
Removes all elements from the System.Collections.ObjectModel.Collection`1.
Declaration
protected override void ClearItems()
InsertItem(Int32, SchemaElement)
Inserts an element into the System.Collections.ObjectModel.Collection`1 at the specified index.
Declaration
protected override void InsertItem(int index, SchemaElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
SchemaElement | item | The object to insert. The value can be null for reference types. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
SetItem(Int32, SchemaElement)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, SchemaElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to replace. |
SchemaElement | item | The new value for the element at the specified index. The value can be null for reference types. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|