Gets the value of the specified column as a Boolean.
[Visual Basic] Public Function GetBoolean( _ ByVal i As Integer _ ) _ Implements IDataRecord.GetBoolean As Boolean [C#] public bool GetBoolean( int i ); [C++] public: bool GetBoolean( int i ); [JScript] public function GetBoolean( int i ): bool;
The value of the column as a boolean.
Supported SQL data types for the conversion are: Any integer data type.
Use the IsDBNull method to check for database null value before calling this method.| Exception Type | Condition |
|---|---|
| InvalidCastException | The underlying SQL data type cannot be converted to boolean. |
| InvalidOperationException | The MimerDataReader is not positioned on a row. |
| IndexOutOfRangeException | The column ordinal is outside the valid range. |
MimerDataReader Class | Mimer.Data.Client Namespace