Copies the elements of the DB2ErrorCollection into an array, starting at the given index within the array.
[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
);
| 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. |