语言

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 类型。

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

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

适用于