PipelineBuffer.SetDecimal(Int32, Decimal) 方法

定义

为缓冲列分配一个小数。

public:
 void SetDecimal(int columnIndex, System::Decimal value);
public void SetDecimal(int columnIndex, decimal value);
member this.SetDecimal : int * decimal -> unit
Public Sub SetDecimal (columnIndex As Integer, value As Decimal)

参数

columnIndex
Int32

缓冲区行中该列的索引。

value
Decimal

分配给缓冲区列的值。

注解

SetDecimal 方法将a decimal 分配给参数指定的 columnIndex 缓冲列。

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

如果缓冲列的 DataType 不是 DT_NUMERICDT_DECIMALDT_CY,则发生 。UnsupportedBufferDataTypeException

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

适用于