This documentation is archived and is not being maintained.
DataListItemCollection.CopyTo Method
.NET Framework 1.1
Copies all the items from this DataListItemCollection collection 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 [C#] public virtual void CopyTo( Array array, int index ); [C++] public: virtual void CopyTo( Array* array, int index ); [JScript] public function CopyTo( array : Array, index : int );
Parameters
- array
- A zero-based System.Array object that receives the copied items from the DataListItemCollection collection.
- index
- The first position in the specified System.Array object to receive the copied contents.
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.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
DataListItemCollection Class | DataListItemCollection Members | System.Web.UI.WebControls Namespace | System.Array
Show: