语言

PipelineBuffer.GetTime(Int32) 方法

定义

获取存储在该 PipelineBuffer 列中的TimeSpan值。

public:
 TimeSpan GetTime(int columnIndex);
public TimeSpan GetTime(int columnIndex);
member this.GetTime : int -> TimeSpan
Public Function GetTime (columnIndex As Integer) As TimeSpan

参数

columnIndex
Int32

行中 PipelineBuffer 列的索引。

返回

存储在列 PipelineBuffer 中的TimeSpan值。

注解

该方法适用于以下集成服务数据类型:

GetTime 方法检索 TimeSpan 数据类型列的值, DT_DBTIMEDT_DBTIME2

如果列的值为空,则 PipelineBuffer 抛出一个 ColumnIsNullException。 你可以通过调用该 IsNull 方法来检查是否有空值。

有关集成服务数据类型的完整列表以及该类中用于各类型的对应GetSet方法PipelineBuffer,请参见“在数据流中与数据类型工作”。

适用于