SqlDataReader.GetValue(Int32) 方法

定义

获取指定列以本机格式表示的值。Gets the value of the specified column in its native format.

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

从零开始的列序号。The zero-based column ordinal.

返回

Object

对于 null 数据库列,此方法返回 DBNullThis method returns DBNull for null database columns.

实现

注解

GetValue 使用 .NET Framework 类型返回数据。GetValue returns data using the .NET Framework types.

适用于

另请参阅