以 DateTime 对象形式获取指定列的值。
[Visual Basic]
Public Function GetDateTime( _
ByVal i As Integer _
) As DateTime
[C#]
public DateTime GetDateTime(
int i
);
[C++]
public: DateTime GetDateTime(
int i
);
[JScript]
public function GetDateTime(
i : int
) : DateTime;
DateTime 对象形式的指定列的值。
| 异常类型 | 条件 |
|---|---|
| InvalidCastException | 指定的强制类型转换无效。 |
| DB2Exception | 转换无效。 |
不执行转换。要检索的数据必须为 DB2®Type.Date 或 DB2Type.Timestamp。
| DB2Type 数据类型 | DB2 数据类型 | Informix® 数据类型 |
|---|---|---|
| Date | DATE | DATETIME(日期精度) |
在调用此方法前调用 IsDBNull 以检查空值情况。