Mimer Data Provider

MimerDataReader.GetBoolean Method 

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;

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a boolean.

Implements

IDataRecord.GetBoolean

Remarks

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.

Exceptions

Exception TypeCondition
InvalidCastExceptionThe underlying SQL data type cannot be converted to boolean.
InvalidOperationExceptionThe MimerDataReader is not positioned on a row.
IndexOutOfRangeExceptionThe column ordinal is outside the valid range.

See Also

MimerDataReader Class | Mimer.Data.Client Namespace