Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft