OleDbErrorCollection::CopyTo Method (array<OleDbError^>^, Int32)

 

Copies all the elements of the current OleDbErrorCollection to the specified OleDbErrorCollection starting at the specified destination index.

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

public:
void CopyTo(
	array<OleDbError^>^ array,
	int index
)

Parameters

array
Type: array<System.Data.OleDb::OleDbError^>^

The OleDbErrorCollection that is the destination of the elements copied from the current OleDbErrorCollection.

index
Type: System::Int32

A 32-bit integer that represents the index in the OleDbErrorCollection at which copying starts.

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 2.0
Return to top
Show: