This documentation is archived and is not being maintained.

DataKeyCollection.CopyTo Method

Copies all the items from the DataKeyCollection to the specified System.Array object, starting at the specified index in the System.Array object.

[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 object that receives the copied items from the DataKeyCollection.
index
The first position in the specified System.Array object to receive the copied contents.

Implements

ICollection.CopyTo

Remarks

Use this method to copy the contents of the DataKeyCollection into the specified System.Array object, 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

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

Show: