Copies the elements of the
ObjectView to an Array, starting at
a particular Array index.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub CopyTo( _
ByVal array() As T, _
ByVal arrayIndex As Integer _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectView(Of T)
Dim array() As T
Dim arrayIndex As Integer
instance.CopyTo(array, arrayIndex)
|
| Managed Extensions for C++ | |
|---|
public: void CopyTo(
T[]* array,
int arrayIndex
) |
Parameters
- array
- The one-dimensional Array that is the destination of the elements copied
from ObjectView.
- arrayIndex
- The zero-based index in array at which copying begins.
Exceptions
| Exception | Description |
| ArgumentNullException | Array is null. |
| ArgumentException | Array is multidimensional, array does not have zero-based
indexing, the number of elements in the source is greater than the number of elements that the
destination array can contain or type T cannot be cast automatically to the type of the destination
array. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also