OdbcDataReader.GetBoolean(Int32) 方法

定義

取得指定之資料行的值做為布林值 (Boolean)。

public:
 override bool GetBoolean(int i);
public:
 virtual bool GetBoolean(int i);
public override bool GetBoolean (int i);
public bool GetBoolean (int i);
override this.GetBoolean : int -> bool
abstract member GetBoolean : int -> bool
override this.GetBoolean : int -> bool
Public Overrides Function GetBoolean (i As Integer) As Boolean
Public Function GetBoolean (i As Integer) As Boolean

參數

i
Int32

以零為基底的資料行序數。

傳回

布林值,為資料行的值。

實作

例外狀況

指定的轉型無效。

備註

轉換是根據 ODBC 驅動程式的基礎功能來執行。 如果不支持轉換,則方法呼叫將會失敗。

呼叫 IsDBNull 以在呼叫此方法之前尋找 Null 值。

適用於

另請參閱