DbDataRecord.GetBoolean(Int32) 方法

定義

傳回指定資料行的值做為布林值。

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

參數

i
Int32

資料行序數。

傳回

如果布林值是 true,則為 true;否則為 false

實作

備註

不會執行任何轉換;因此,擷取的數據必須是布爾值。

適用於

另請參閱