MySQL Connector/Net |
MySqlDataReader..::.GetDecimal Method (Int32) |
MySqlDataReader Class See Also Send Feedback |
Gets the value of the specified column as a Decimal object.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public override decimal GetDecimal( int i ) |
Visual Basic (Declaration) |
---|
Public Overrides Function GetDecimal ( _ i As Integer _ ) As Decimal |
Visual C++ |
---|
public: virtual Decimal GetDecimal( int i ) override |
Parameters
- i
- Type: System..::.Int32
The zero-based column ordinal
Return Value
The value of the specified column.Implements
IDataRecord..::.GetDecimal(Int32)IDataRecord..::.GetDecimal(Int32)
Remarks
No conversions are performed; therefore, the data retrieved must already be a Decimal object.
Call IsDBNull to check for null values before calling this method.