public class XmlSchemaObjectCollection : CollectionBase
|
ctor #1 | Overloaded:.ctor() Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the XmlSchemaObjectCollection class. |
ctor #2 | Overloaded:.ctor(XmlSchemaObject parent) Initializes a new instance of the XmlSchemaObjectCollection class that takes an XmlSchemaObject. |
Count (inherited from System.Collections.CollectionBase) |
Read-only See base class member description: System.Collections.CollectionBase.Count Gets the number of elements contained in the CollectionBase instance. |
Item | Read-write Looks up the qualified name using the supplied XmlQualifiedName and returns the XmlSchemaObject, the XML Schema definition language (XSD) element for this qualified name. |
Add | Adds an XmlSchemaObject to the XmlSchemaObjectCollection. |
Clear (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.Clear Removes all objects from the CollectionBase instance. |
Contains | Indicates if the specified qualified name is located in the XmlSchemaObjectCollection. |
CopyTo | Copies all the XmlSchemaObjects from the collection into the given array starting at the given index. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetEnumerator | Returns an enumerator for iterating through the XmlSchemaObjects contained in the XmlSchemaObjectCollection. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
IndexOf | Gets the index of the specified XmlSchemaObject within the collection of the specified item. |
Insert | Inserts an XmlSchemaObject to the XmlSchemaObjectCollection. |
Remove | Removes an XmlSchemaObject from the XmlSchemaObjectCollection. |
RemoveAt (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.RemoveAt Removes the element at the specified index of the CollectionBase instance. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
InnerList (inherited from System.Collections.CollectionBase) |
Read-only See base class member description: System.Collections.CollectionBase.InnerList Gets an ArrayList containing the list of elements in the CollectionBase instance. |
List (inherited from System.Collections.CollectionBase) |
Read-only See base class member description: System.Collections.CollectionBase.List Gets an IList containing the list of elements in the CollectionBase instance. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
OnClear | Overridden: OnClear is invoked before the standard Clear behavior. For more information, see OnClear method for CollectionBase. |
OnClearComplete (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.OnClearComplete Performs additional custom processes after clearing the contents of the CollectionBase instance. |
OnInsert | Overridden: OnInsert is invoked before the standard Insert behavior. For more information, see OnInsert method CollectionBase. |
OnInsertComplete (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.OnInsertComplete Performs additional custom processes after inserting a new element into the CollectionBase instance. |
OnRemove | Overridden: OnRemove is invoked before the standard Remove behavior. For more information, see OnRemove method for CollectionBase. |
OnRemoveComplete (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.OnRemoveComplete Performs additional custom processes after removing an element from the CollectionBase instance. |
OnSet | Overridden: OnSet is invoked before the standard Set behavior. For more information, see OnSet method for CollectionBase. |
OnSetComplete (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.OnSetComplete Performs additional custom processes after setting a value in the CollectionBase instance. |
OnValidate (inherited from System.Collections.CollectionBase) |
See base class member description: System.Collections.CollectionBase.OnValidate Performs additional custom processes when validating a value. |
Hierarchy:
public XmlSchemaObjectCollection(); |
public XmlSchemaObjectCollection( |
parent
public int Count {get;}
|
protected ArrayList InnerList {get;}
|
public virtual XmlSchemaObject this[int index] {get; set;}
|
index
protected IList List {get;}
|
public int Add( |
item
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero. -or- index is greater than Count. |
If Count is less than the capacity, this method is an 0(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an 0(n) operation, where n is Count.
public void Clear(); |
public bool Contains( |
item
public void CopyTo( |
array
index
Exception Type | Condition |
---|---|
ArgumentNullException | array is a null reference (not set or empty). |
ArgumentOutOfRangeException | index is less than zero. |
ArgumentException | array is multidimensional. - or - index is equal to or greater than the length of array. - or - The number of elements in the source XmlSchemaObject is greater than the available space from index to the end of the destination array. |
InvalidCastException | The type of the source XmlSchemaObject cannot be cast automatically to the type of the destination array. |
This method uses Array.Copy to copy the elements.
~XmlSchemaObjectCollection(); |
public new XmlSchemaObjectEnumerator GetEnumerator(); |
public virtual int GetHashCode(); |
public Type GetType(); |
public int IndexOf( |
item
public void Insert( |
index
item
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero. -or- index is greater than Count. |
If index is equal to Count, value is added to the end of XmlSchemaObjectCollection.
The elements that follow the insertion point move down to accomodate the new element.
protected object MemberwiseClone(); |
protected override void OnClear(); |
protected virtual void OnClearComplete(); |
The On* methods are invoked only on the instance returned by the CollectionBase.List property, but not on the instance returned by the CollectionBase.InnerList property.
This method allows implementers to define processes that must be performed after deleting all the elements from the underlying ArrayList. By defining this method, implementers can add functionality to inherited methods without having to override all other methods.
CollectionBase.OnClear is invoked before the standard Clear behavior, whereas CollectionBase.OnClearComplete is invoked after the standard Clear behavior.
index
item
index
value
The On* methods are invoked only on the instance returned by the CollectionBase.List property, but not on the instance returned by the CollectionBase.InnerList property.
This method allows implementers to define processes that must be performed after inserting the element into the underlying ArrayList. By defining this method, implementers can add functionality to inherited methods without having to override all other methods.
CollectionBase.OnInsert is invoked before the standard Insert behavior, whereas CollectionBase.OnInsertComplete is invoked after the standard Insert behavior.
index
item
index
value
The On* methods are invoked only on the instance returned by the CollectionBase.List property, but not on the instance returned by the CollectionBase.InnerList property.
This method allows implementers to define processes that must be performed after removing the element from the underlying ArrayList. By defining this method, implementers can add functionality to inherited methods without having to override all other methods.
CollectionBase.OnRemove is invoked before the standard Remove behavior, whereas CollectionBase.OnRemoveComplete is invoked after the standard Remove behavior.
index
oldValue
newValue
index
oldValue
newValue
The On* methods are invoked only on the instance returned by the CollectionBase.List property, but not on the instance returned by the CollectionBase.InnerList property.
This method allows implementers to define processes that must be performed after setting the specified element in the underlying ArrayList. By defining this method, implementers can add functionality to inherited methods without having to override all other methods.
CollectionBase.OnSet is invoked before the standard Set behavior, whereas CollectionBase.OnSetComplete is invoked after the standard Set behavior.
protected virtual void OnValidate( |
value
The On* methods are invoked only on the instance returned by the CollectionBase.List property, but not on the instance returned by the CollectionBase.InnerList property.
This method allows implementers to define processes that must be performed when executing the standard behavior of the underlying ArrayList. By defining this method, implementers can add functionality to inherited methods without having to override all other methods.
CollectionBase.OnValidate can be used to impose restrictions on the type of objects that are accepted into the collection. The default implementation prevents null from being added to or removed from the underlying ArrayList.
public void Remove( |
item
This method determines equality by calling Object.Equals.
The elements that follow the removed element move up to occupy the vacated spot.
public void RemoveAt( |
index
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero. -or- index is equal to or greater than CollectionBase.Count. |
public virtual string ToString(); |