OracleDataReader.GetDecimal(Int32) 方法

定义

Decimal 对象的形式获取指定列的值。

C#
public decimal GetDecimal(int i);
C#
public override decimal GetDecimal(int i);

参数

i
Int32

从零开始的列序号。

返回

指定列的 Decimal 对象形式的值。

实现

例外

指定的强制转换无效。

注解

在调用此方法之前,调用 IsDBNull 检查 以获取 null 值。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1