GetBoolean

This method returns the bool value of the specified numeric column.

Declaration

// C#
public override bool GetBoolean(int index);

Parameters

Return Value

The bool value of the column.

Implements

IDataRecord

Exceptions

InvalidOperationException - The connection is closed, the reader is closed, Read() has not been called, or all rows have been read.

IndexOutOfRangeException - The column index is invalid.

InvalidCastException - The accessor method is invalid for this column type.

Remarks

See Also: