SqlDataRecord.GetTimeSpan(Int32) SqlDataRecord.GetTimeSpan(Int32) SqlDataRecord.GetTimeSpan(Int32) SqlDataRecord.GetTimeSpan(Int32) Method

定义

TimeSpan 的形式返回指定列的数据。Returns the specified column's data as a TimeSpan.

public:
 virtual TimeSpan GetTimeSpan(int ordinal);
public virtual TimeSpan GetTimeSpan (int ordinal);
abstract member GetTimeSpan : int -> TimeSpan
override this.GetTimeSpan : int -> TimeSpan
Public Overridable Function GetTimeSpan (ordinal As Integer) As TimeSpan

参数

ordinal
Int32 Int32 Int32 Int32

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

返回

TimeSpan 的形式指定的列的值。The value of the specified column as a TimeSpan.

适用于