PipelineBuffer.SetDate(Int32, DateTime) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为该列分配一个DateTime值 PipelineBuffer 。
public:
void SetDate(int columnIndex, DateTime value);
public void SetDate(int columnIndex, DateTime value);
member this.SetDate : int * DateTime -> unit
Public Sub SetDate (columnIndex As Integer, value As DateTime)
参数
- columnIndex
- Int32
行中 PipelineBuffer 列的索引。
- value
- DateTime
分配给缓冲区列的值。
注解
该 SetDate 方法为 DateTime 参数指定的 columnIndex 缓冲区列赋予一个值。
该方法适用于集成服务中的数据 DT_DBDATE 类型。
如果缓冲区列的 不DataTypeDT_DBDATE成立,则发生 。UnsupportedBufferDataTypeException
有关集成服务数据类型的完整列表以及该类中用于各类型的对应Get和Set方法PipelineBuffer,请参见“在数据流中与数据类型工作”。