This documentation is archived and is not being maintained.

PagedDataSource.CopyTo Method

Copies all the items from the data source to the specified System.Array, starting at the specified index in the System.Array.

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

Parameters

array
A zero-based System.Array that receives the copied items from the data source.
index
The first position in the specified System.Array to receive the copied contents.

Implements

ICollection.CopyTo

Remarks

Use this method to copy the contents of the data source into the specified System.Array, starting at the specified index.

Note   The array parameter must be a zero-based System.Array object.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

PagedDataSource Class | PagedDataSource Members | System.Web.UI.WebControls Namespace | System.Array

Show: