DB2®DataReader.GetBoolean Method

Gets the value of the specified column as a Boolean. This method is not supported.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


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

Parameters

i
The zero-based column ordinal.

Return value

A Boolean that is the value of the column.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception Invalid conversion.

Remarks

Call IsDBNull to check for null values before calling this method.