OleDbErrorCollection::CopyTo Method (Array^, Int32)

 

Copies the elements of the OleDbErrorCollection into an Array, starting at the specified index within the Array.

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

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

Parameters

array
Type: System::Array^

The Array into which to copy the elements.

index
Type: System::Int32

The starting index of the array.

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.

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

.NET Framework
Available since 1.1
Return to top
Show: