OleDbInfoMessageEventArgs.ErrorCode 屬性

定義

取得遵循資料庫 ANSI SQL 標準的 HRESULT。

public:
 property int ErrorCode { int get(); };
public int ErrorCode { get; }
member this.ErrorCode : int
Public ReadOnly Property ErrorCode As Integer

屬性值

如果可以從一個以上的位置發出錯誤,則為會辨識錯誤來源的 HRESULT。

備註

這是集合中Errors第一個 OleDbError 屬性的包裝函SQLState式。

適用於