OleDbErrorCollection::CopyTo Method (Array^, Int32)
.NET Framework (current version)
Copies the elements of the OleDbErrorCollection into an Array, starting at the specified index within the Array.
Assembly: System.Data (in System.Data.dll)
Parameters
- array
-
Type:
System::Array^
The Array into which to copy the elements.
- index
-
Type:
System::Int32
The starting index of the array.
Implements
ICollection::CopyTo(Array^, Int32)| Exception | Condition |
|---|---|
| ArgumentException | The sum of index and the number of elements in the OleDbErrorCollection is greater than the length of the Array. |
| ArgumentNullException | The array is null. |
| ArgumentOutOfRangeException | The index is not valid for array. |
The following example displays each OleDbError within the OleDbErrorCollection collection.
.NET Framework
Available since 1.1
Available since 1.1
CopyTo Overload
OleDbErrorCollection Class
System.Data.OleDb Namespace
Exceptions Overview
Show: