OracleDataReader.GetValue(Int32) 方法

定義

取得使用原生格式的指定序數的資料行值。

public:
 virtual System::Object ^ GetValue(int i);
public:
 override System::Object ^ GetValue(int i);
public object GetValue (int i);
public override object GetValue (int i);
abstract member GetValue : int -> obj
override this.GetValue : int -> obj
override this.GetValue : int -> obj
Public Function GetValue (i As Integer) As Object
Public Overrides Function GetValue (i As Integer) As Object

參數

i
Int32

以零為基底的資料行序數。

傳回

要傳回的值。

實作

例外狀況

值太大,無法以 .NET 的 Decimal 儲存。

備註

對於 null 資料庫資料行來說,這個方法會傳回 DBNull。 這個方法傳回的值可能是從 Oracle 的 Number 數據類型轉換為 .NET Decimal 類型的結果。 如果值太大而無法儲存在 .NET Decimal 中,這個方法會 OracleException 擲回溢位例外狀況的 。

適用於