This documentation is archived and is not being maintained.

OleDbInfoMessageEventArgs.ErrorCode Property

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

[Visual Basic]
Public ReadOnly Property ErrorCode As Integer
public int ErrorCode {get;}
public: __property int get_ErrorCode();
public function get ErrorCode() : int;

Property Value

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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OleDbInfoMessageEventArgs Class | OleDbInfoMessageEventArgs Members | System.Data.OleDb Namespace