BindingContext.ICollection.CopyTo Method (Array, Int32)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Copies the elements of the collection into a specified array, starting at the collection index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Private Sub CopyTo (
	ar As Array,
	index As Integer
)
	Implements ICollection.CopyTo

Parameters

ar
Type: System.Array

An Array to copy into.

index
Type: System.Int32

The collection index to begin copying from.

Private Sub CopyToArray()
    ' Declare the array.
    Dim myArray(100) As Object
    CType(Me.BindingContext, ICollection).CopyTo(myArray, 0)
End Sub

.NET Framework
Available since 1.1
Return to top
Show: