OdbcDataReader.GetDate(Int32) 方法

定义

DateTime 对象的形式获取指定列的值。Gets the value of the specified column as a DateTime object.

public:
 DateTime GetDate(int i);
public DateTime GetDate (int i);
member this.GetDate : int -> DateTime
Public Function GetDate (i As Integer) As DateTime

参数

i
Int32

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

返回

DateTime

指定列的 DateTime 对象形式的值。The value of the specified column as a DateTime object.

适用于