DetailsViewRowCollection.ICollection.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 DetailsViewRowCollection object to the specified Array object, starting at the specified index in the Array.
virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo
Parameters
- array
- Array
A zero-based Array that receives the copied items from the DetailsViewRowCollection.
Implements
Remarks
This implementation of the ICollection.CopyTo(Array, Int32) method is a helper method used by the DetailsViewRowCollection class to copy the items in the DetailsViewRowCollection object into the specified Array object, starting at the specified index. The Array object can then be used to access the items in the collection.
Note
You must use a zero-based Array object for the array
parameter.