SqlDataReader.GetSqlBoolean(Int32) 方法

定義

取得指定的資料行值做為 SqlBooleanGets the value of the specified column as a SqlBoolean.

public:
 System::Data::SqlTypes::SqlBoolean GetSqlBoolean(int i);
public System.Data.SqlTypes.SqlBoolean GetSqlBoolean (int i);
member this.GetSqlBoolean : int -> System.Data.SqlTypes.SqlBoolean
Public Function GetSqlBoolean (i As Integer) As SqlBoolean

參數

i
Int32

以零為基底的資料行序數。The zero-based column ordinal.

傳回

資料行的值。The value of the column.

備註

不會執行任何轉換;因此,抓取的資料必須已經是布林值,否則就會產生例外狀況。No conversions are performed; therefore, the data retrieved must already be a Boolean or an exception is generated.

適用於

另請參閱