Export (0) Print
Expand All

InternalDataCollectionBase.CopyTo Method

Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index.

[Visual Basic]
Public Overridable Sub CopyTo( _
   ByVal ar As Array, _
   ByVal index As Integer _
) Implements ICollection.CopyTo
[C#]
public virtual void CopyTo(
 Array ar,
 int index
);
[C++]
public: virtual void CopyTo(
 Array* ar,
 int index
);
[JScript]
public function CopyTo(
   ar : Array,
 index : int
);

Parameters

ar
The one-dimensional Array to copy the current InternalDataCollectionBase object's elements into.
index
The destination Array index to start copying into.

Implements

ICollection.CopyTo

Remarks

This method can be overridden by a derived class.

The BaseCollection class and its members are not intended for use as a stand alone component, but as the class from which other collection classes derive standard functionality.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

InternalDataCollectionBase Class | InternalDataCollectionBase Members | System.Data Namespace

Show:
© 2014 Microsoft