Share via


ElementList.CopyTo Method

Copies the XML elements of the collection to the specified a one-dimensional array of type System.Xml.XmlElement starting at the specified index in the array.

Namespace: Microsoft.Web.Services2.Xml
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim array() As XmlElement
Dim index As Integer
Dim elementList1 As ElementList
elementList1.CopyTo(array, index)

Syntax

'Declaration
Public Sub CopyTo( _
    ByVal array() As XmlElement, _
    ByVal index As Integer _
)
public void CopyTo(
    XmlElement[] array, 
    int index
);
public: Void CopyTo(
    array<XmlElement^>^ array, 
    Int32 index
);
public void CopyTo(
    XmlElement[] array, 
    int index
);
public function CopyTo(
     array : XmlElement[], 
     index : int
);

Parameters

  • array
    The one-dimensional array of type System.Xml.XmlElement that is the destination of the XML elements copied from the ElementList. The array must have zero-based indexing.
  • index
    The zero-based index in array at which copying begins.

Exceptions

Exception type Condition
System.ArgumentNullException

array is null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

ElementList Class
Microsoft.Web.Services2.Xml Namespace

Other Resources

ElementList Members