SqlErrorCollection::CopyTo Method (Array^, Int32)
.NET Framework (current version)
Copies the elements of the SqlErrorCollection collection into an Array, starting at the specified index.
Assembly: System.Data (in System.Data.dll)
Parameters
- array
-
Type:
System::Array^
The Array to copy elements into.
- index
-
Type:
System::Int32
The index from which to start copying into the array parameter.
Implements
ICollection::CopyTo(Array^, Int32)| Exception | Condition |
|---|---|
| ArgumentException | The sum of index and the number of elements in the SqlErrorCollection collection is greater than the Length of the Array. |
| ArgumentNullException | The array is null. |
| ArgumentOutOfRangeException | The index is not valid for array. |
.NET Framework
Available since 1.1
Available since 1.1
Show: