System.Xml.Schema.XmlSchemaObjectCollection.CopyTo Method

Copies all the System.Xml.Schema.XmlSchemaObjects from the collection into the given array, starting at the given index.

Syntax

public void CopyTo (XmlSchemaObject[] array, int index)

Parameters

array
The one-dimensional array that is the destination of the elements copied from the XmlSchemaObjectCollection. The array must have zero-based indexing.
index
The zero-based index in the array at which copying begins.

Remarks

The specified array must be of a compatible type.

This method uses Array.Copy(Array, Array, int) to copy the elements.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0