XmlElementAttributes.ICollection.CopyTo Method

Copies the elements from the attribute collection to an array, starting at a specified index of the array.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

Private Sub CopyTo ( _
	array As Array, _
	index As Integer _
) Implements ICollection.CopyTo


Type: System.Array
The one-dimensional destination Array for the attribute elements copied from the XmlElementAttributes collection.
Type: System.Int32
The zero-based index in array at which copying begins.


ICollection.CopyTo(Array, Int32)


The index is less than zero.


The index is greater than the length of the array, the length of the array is exceeded when the attribute elements are added, or the array is multidimensional.

The destination Array must have zero-based indexing or an exception will be thrown.

Note that when an interface method is explicitly implemented, it is no longer visible as a public member of the class. The only way to access it is through the interface.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions