DataListItemCollection.CopyTo(Array, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies all the items from this DataListItemCollection collection to the specified Array object, starting at the specified index in the Array object.
public:
virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)
Parameters
- array
- Array
A zero-based Array object that receives the copied items from the DataListItemCollection collection.
Implements
Remarks
Use this method to copy the contents of the DataListItemCollection collection into the specified System.Array object, starting at the specified index.
Note
The array
parameter must be a zero-based System.Array object.