OracleDataReader.GetTimeSpan(Int32) 方法
定义
获取指定列的 System.TimeSpan 形式的值。Gets the value of the specified column as a System.TimeSpan.
public:
TimeSpan GetTimeSpan(int i);
public TimeSpan GetTimeSpan (int i);
member this.GetTimeSpan : int -> TimeSpan
Public Function GetTimeSpan (i As Integer) As TimeSpan
参数
- i
- Int32
从零开始的列序号。The zero-based column ordinal.
返回
以 TimeSpan 的形式指定的列的值。The value of the specified column as a TimeSpan.
例外
指定的强制转换无效。The specified cast is not valid.
注解
调用 IsDBNull 以在调用此方法前检查是否有 null 值。Call IsDBNull to check for null values before calling this method.