Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SADataReader 类

 

GetDateTime 方法

以 DateTime 对象形式返回指定列的值。

语法
Visual Basic

Public Overrides Function GetDateTime( _
   ByVal ordinal As Integer _
) As Date
C#

public override DateTime GetDateTime(
   int ordinal
);
参数
  • ordinal   从零开始的列顺序号。

返回值

指定列的值。

注释

不会进行任何转换,因此检索的数据必须已经是 DateTime 对象。

在调用此方法之前,调用 SADataReader.IsDBNull 方法以检查是否存在空值。

另请参见