Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
public virtual void CopyTo(
 Array array,
 int index
public: virtual void CopyTo(
 Array* array,
 int index
public function CopyTo(
   array : Array,
 index : int


A zero-based System.Array object that receives the copied items from the DataKeyCollection.
The first position in the specified System.Array object to receive the copied contents.




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.


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

See Also

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

© 2015 Microsoft