Share via


PipelineBuffer.SetDateTime(Int32, DateTime) 方法

定义

为列分配 DateTime 值 PipelineBuffer

public:
 void SetDateTime(int columnIndex, DateTime value);
public void SetDateTime (int columnIndex, DateTime value);
member this.SetDateTime : int * DateTime -> unit
Public Sub SetDateTime (columnIndex As Integer, value As DateTime)

参数

columnIndex
Int32

缓冲区行中列的索引。

value
DateTime

赋给缓冲区列的值。

注解

该方法 SetDateTime 将值 DateTime 分配给参数指定的 columnIndex 缓冲区列。

此方法适用于以下 Integration Services 数据类型:

DateTime当值需要比列支持的秒小数DT_DBTIMESTAMP2位数多时,数据将被截断并DoesNotFitBufferException发生。

DataType如果缓冲区列不是DT_DATEDT_DBTIMESTAMPDT_DBTIMESTAMP2DT_FILETIMEUnsupportedBufferDataTypeException发生。

有关 Integration Services 数据类型的完整列表以及用于每种类型的类的相应GetSet方法PipelineBuffer,请参阅数据流中的“处理数据类型”。

适用于