GetBoolean
This method returns the bool value of the specified numeric column.
Declaration
// C#
public override bool GetBoolean(int index);Parameters
- 
                        indexThe zero-based column index. 
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
- 
                        This method can be called on any numeric database type column ( NUMBER,BINARY_DOUBLE,BINARY_FLOAT, andFLOAT).
- 
                        FALSEis returned if column value is0;TRUEotherwise.
- 
                        IsDBNullshould be called to check forNULLvalues before calling this method.