DB2 10.5 for Linux, UNIX, and Windows

DB2ErrorCollection.CopyTo Method

Copies the elements of the DB2ErrorCollection into an array, starting at the given index within the array.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
<Serializable>
NotOverridable Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal i As Integer _
) Implements ICollection.CopyTo
[C#]
[Serializable]
public void CopyTo(
   Array array,
   int i
);
[C++]
[Serializable]
public: __sealed void CopyTo(
   Array* array,
   int i
);
[JScript]
public
   Serializable
function CopyTo(
   array : Array,
   i : int
);
Implements:
ICollection.CopyTo

Parameters

array
The array into which to copy the elements.
i
The starting index of array.

Exceptions

Exception type Condition
ArgumentException The sum of index and the number of elements in the DB2®ErrorCollection is greater than the length of the array.
ArgumentNullException The array is a null reference (Nothing in Microsoft(R) Visual Basic(R)).
ArgumentOutOfRangeException The index is not valid for the array.