Partager via


ElementList.CopyTo Method

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

Namespace: Microsoft.Web.Services3.Xml
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.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,
    int index
);
public void CopyTo(
    XmlElement[] array, 
    int index
);
public function CopyTo(
     array : XmlElement[], 
     index : int
) : Void;

Parameters

  • array
    The one-dimensional array of type 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
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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

ElementList Class
ElementList Members
Microsoft.Web.Services3.Xml Namespace