OdbcErrorCollection::CopyTo Method (Array^, Int32)
.NET Framework (current version)
Copies the elements of the OdbcErrorCollection 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.
- i
-
Type:
System::Int32
The starting index of array.
Implements
ICollection::CopyTo(Array^, Int32)| Exception | Condition |
|---|---|
| ArgumentException | The sum of index and the number of elements in the OdbcErrorCollection 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 OdbcError within the OdbcErrorCollection collection.
.NET Framework
Available since 1.1
Available since 1.1
CopyTo Overload
OdbcErrorCollection Class
System.Data.Odbc Namespace
Exceptions Overview
Show: