IDataRecord.GetBoolean(Int32) 方法

定義

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

public:
 bool GetBoolean(int i);
public bool GetBoolean (int i);
abstract member GetBoolean : int -> bool
Public Function GetBoolean (i As Integer) As Boolean

參數

i
Int32

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

傳回

資料行的值。

例外狀況

傳遞的索引超出 0 到 FieldCount 的範圍。

備註

不會執行任何轉換。 因此,擷取的數據必須是布爾值;否則會產生例外狀況。

適用於