DataKeyArray.CopyTo Method
.NET Framework 3.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 )
Not applicable.
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.
Community Additions
ADD
Show:
Note: