OdbcErrorCollection::CopyTo Method (array<OdbcError^>^, Int32)

 

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

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

public:
void CopyTo(
	array<OdbcError^>^ array,
	int i
)

Parameters

array
Type: array<System.Data.Odbc::OdbcError^>^

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

i
Type: System::Int32

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

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