PipelineBuffer.SetSingle(Int32, Single) 方法

定义

将浮点数赋给缓冲区列。

public:
 void SetSingle(int columnIndex, float value);
public void SetSingle (int columnIndex, float value);
member this.SetSingle : int * single -> unit
Public Sub SetSingle (columnIndex As Integer, value As Single)

参数

columnIndex
Int32

缓冲区行中列的索引。

value
Single

赋给缓冲区列的值。

注解

该方法 SetSingle 将浮点分配给参数指定的 columnIndex 缓冲区列。

此方法适用于 DT_R4 Integration Services 中的数据类型。

如果分配给缓冲区列的值不是float缓冲区列,或者缓冲区列DataType不是DT_R4,则会发生。UnsupportedBufferDataTypeException

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

适用于