OleDbInfoMessageEventArgs::ErrorCode Property

 

Gets the HRESULT following the ANSI SQL standard for the database.

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

public:
property int ErrorCode {
	int get();
}

Property Value

Type: System::Int32

The HRESULT, which identifies the source of the error, if the error can be issued from more than one place.

This is a wrapper for the SQLState property of the first OleDbError in the Errors collection.

.NET Framework
Available since 1.1
Return to top
Show: