SqlDataReader.GetValue(Int32) 方法

定义

获取指定列的本机格式的值。

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

参数

i
Int32

从零开始的列序号。

返回

此方法 DBNull 返回 null 数据库列。

实现

注解

GetValue使用.NET类型返回数据。

适用于

另请参阅