Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class SchemaElementCollection

Represents schema element collection.

Inheritance
System.Object
SchemaElementCollection
Namespace: Mediachase.BusinessFoundation.Data.Meta.Schema
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0
Syntax
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 item should be inserted.

SchemaElement item

The object to insert. The value can be null for reference types.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection`1.Count.

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

index is less than zero.-or-index is equal to or greater than System.Collections.ObjectModel.Collection`1.Count.

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

index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection`1.Count.