Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Xml.​Schema.​XmlSchemaObjectCollection
Assembly: System.Xml.ReaderWriter
Inheritance: object → Collections.​CollectionBase → XmlSchemaObjectCollection
Implemented Interfaces
- Collections.​IList (Inherits: ICollectionIEnumerable) Implemented by: CollectionBase
A collection of <see cref="T:System.Xml.Schema.XmlSchemaObject" /> s.
Properties
public
XmlSchemaObject
Item
public
int
Capacity
public
int
Count
protected
Collections.​ArrayList
InnerList
protected
Collections.​IList
List
Methods
public
int
Add​(XmlSchemaObject item)
Adds an <see cref="T:System.Xml.Schema.XmlSchemaObject" /> to the <see langword="XmlSchemaObjectCollection" /> .
Returns The index at which the item has been added.
item
The <see cref="T:System.Xml.Schema.XmlSchemaObject" /> to add to the collection.
public
bool
Contains​(XmlSchemaObject item)
Indicates if the specified <see cref="T:System.Xml.Schema.XmlSchemaObject" /> is in the <see langword="XmlSchemaObjectCollection" /> .
Returns <see langword="true" /> if the specified qualified name is in the collection; otherwise, returns <see langword="false" /> . If null is supplied, <see langword="false" /> is returned because there is no qualified name with a null name.
item
The <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
public
void
CopyTo​(XmlSchemaObject[] array,
int index)
Copies all the <see cref="T:System.Xml.Schema.XmlSchemaObject" /> s from the collection into the given array, starting at the given index.
array
The one-dimensional array that is the destination of the elements copied from the <see langword="XmlSchemaObjectCollection" /> . The array must have zero-based indexing.
index
The zero-based index in the array at which copying begins.
public
XmlSchemaObjectEnumerator
GetEnumerator​()
Returns an enumerator for iterating through the <see langword="XmlSchemaObjects" /> contained in the <see langword="XmlSchemaObjectCollection" /> .
Returns The iterator returns <see cref="T:System.Xml.Schema.XmlSchemaObjectEnumerator" /> .
public
int
IndexOf​(XmlSchemaObject item)
Gets the collection index corresponding to the specified <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
Returns The index corresponding to the specified <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
item
The <see cref="T:System.Xml.Schema.XmlSchemaObject" /> whose index you want to return.
public
void
Insert​(int index,
XmlSchemaObject item)
Inserts an <see cref="T:System.Xml.Schema.XmlSchemaObject" /> to the <see langword="XmlSchemaObjectCollection" /> .
index
The zero-based index at which an item should be inserted.
item
The <see cref="T:System.Xml.Schema.XmlSchemaObject" /> to insert.
protected
void
OnClear​()
<see langword="OnClear" /> is invoked before the standard <see langword="Clear" /> behavior. For more information, see OnClear method for <see cref="T:System.Collections.CollectionBase" /> .
protected
void
OnInsert​(int index,
object item)
<see langword="OnInsert" /> is invoked before the standard <see langword="Insert" /> behavior. For more information, see <see langword="OnInsert" /> method <see cref="T:System.Collections.CollectionBase" /> .
index
The index of <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
item
The item.
protected
void
OnRemove​(int index,
object item)
<see langword="OnRemove" /> is invoked before the standard <see langword="Remove" /> behavior. For more information, see the <see langword="OnRemove" /> method for <see cref="T:System.Collections.CollectionBase" /> .
index
The index of <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
item
The item.
protected
void
OnSet​(int index,
object oldValue,
object newValue)
<see langword="OnSet" /> is invoked before the standard <see langword="Set" /> behavior. For more information, see the OnSet method for <see cref="T:System.Collections.CollectionBase" /> .
index
The index of <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
oldValue
The old value.
newValue
The new value.
public
void
Remove​(XmlSchemaObject item)
Removes an <see cref="T:System.Xml.Schema.XmlSchemaObject" /> from the <see langword="XmlSchemaObjectCollection" /> .
item
The <see cref="T:System.Xml.Schema.XmlSchemaObject" /> to remove.
protected
void
OnClearComplete​()
Inherited from Collections.​CollectionBase
protected
void
OnInsertComplete​(int index,
object value)
Inherited from Collections.​CollectionBase
protected
void
OnRemoveComplete​(int index,
object value)
Inherited from Collections.​CollectionBase
protected
void
OnSetComplete​(int index,
object oldValue,
object newValue)
Inherited from Collections.​CollectionBase
protected
void
OnValidate​(object value)
Inherited from Collections.​CollectionBase
public
void
RemoveAt​(int index)
Inherited from Collections.​CollectionBase
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object