次の方法で共有


IDataRecord.GetBoolean メソッド

指定した列の値をブール値として取得します。

Function GetBoolean( _
   ByVal i As Integer _) As Boolean
[C#]
bool GetBoolean(
   inti);
[C++]
bool GetBoolean(
   inti);
[JScript]
function GetBoolean(
   i : int) : Boolean;

パラメータ

  • i
    列の 0 から始まる序数。

戻り値

列の値。

例外

例外の種類 条件
IndexOutOfRangeException 渡されたインデックスが 0 から FieldCount の範囲にありません。

解説

変換は実行されません。したがって、取得されたデータが既にブール値でない場合は、例外が生成されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

IDataRecord インターフェイス | IDataRecord メンバ | System.Data 名前空間