OdbcErrorCollection::CopyTo Method (Array^, Int32)

 

Copies the elements of the OdbcErrorCollection into an array, starting at the specified index within the array.

Namespace:   System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public:
virtual void CopyTo(
	Array^ array,
	int i
) sealed

Parameters

array
Type: System::Array^

The array into which to copy the elements.

i
Type: System::Int32

The starting index of array.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: