Chili.Opf3 Send comments on this topic.
CopyTo Method
See Also 
Chili.Opf3 Namespace > Generic ObjectView Class : CopyTo Method




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.
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)
C# 
public void CopyTo( 
   T[] array,
   int arrayIndex
)
Managed Extensions for C++ 
public: void CopyTo( 
   T[]* array,
   int arrayIndex
) 
C++/CLI 
public:
void CopyTo( 
   array<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

ExceptionDescription
ArgumentNullExceptionArray is null.
ArgumentExceptionArray 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