DataKeyArray.CopyTo Method
.NET Framework 2.0
Note: This method is new in the .NET Framework version 2.0.
Copies all the items from this collection to the specified array of DataKey objects, starting at the specified index in the array.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void CopyTo ( DataKey[] array, int index )
public function CopyTo ( array : DataKey[], index : int )
Parameters
- array
A zero-based array of DataKey objects that receives the copied items from the collection.
- index
The first index in the specified array to receive the copied contents.
The following code example demonstrates how to use the CopyTo method to copy the DataKey objects from a DataKeyArray collection to an array of DataKey objects.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show:
Note