PipelineBuffer.SetUInt16(Int32, UInt16) 方法

定义

重要

此 API 不符合 CLS。

将一个无符号的16位整数分配到缓冲列。

public:
 void SetUInt16(int columnIndex, System::UInt16 value);
[System.CLSCompliant(false)]
public void SetUInt16(int columnIndex, ushort value);
[<System.CLSCompliant(false)>]
member this.SetUInt16 : int * uint16 -> unit
Public Sub SetUInt16 (columnIndex As Integer, value As UShort)

参数

columnIndex
Int32

缓冲区行中该列的索引。

value
UInt16

分配给缓冲区列的值。

属性

注解

SetUInt16 方法为参数指定的 columnIndex 缓冲列分配一个无符号的16位整数。

该方法适用于集成服务中的数据 DT_UI2 类型。

如果分配给缓冲区列的值不是16位整数,或者缓冲区列DataType不是DT_UI2,就会发生 。UnsupportedBufferDataTypeException

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

适用于