Mimer Data Provider

MimerDataReader.GetDouble Method 

Gets the value of the specified column as a double-precision floating point number.

[Visual Basic]
Public Function GetDouble( _ 
   ByVal i As Integer _ 
) _
    Implements IDataRecord.GetDouble As Double
[C#]
public double GetDouble(
   int i
);
[C++]
public: double GetDouble(
   int i
);
[JScript]
public function GetDouble(
   int i
): double;

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a Double.

Implements

IDataRecord.GetDouble

Remarks

Supported SQL data types for the conversion are: any numeric or character type that can be converted to double.

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 Double.
InvalidOperationExceptionThe MimerDataReader is not positioned on a row.
IndexOutOfRangeExceptionThe column ordinal is outside the valid range.

See Also

MimerDataReader Class | Mimer.Data.Client Namespace