Export (0) Print
Expand All

OleDbInfoMessageEventArgs.ErrorCode Property

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

[Visual Basic]
Public ReadOnly Property ErrorCode As Integer
[C#]
public int ErrorCode {get;}
[C++]
public: __property int get_ErrorCode();
[JScript]
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.

Remarks

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

Requirements

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

Show:
© 2014 Microsoft