PipelineBuffer.GetUInt16(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
会获得存储在缓冲区列中的ushort值。
public:
System::UInt16 GetUInt16(int columnIndex);
[System.CLSCompliant(false)]
public ushort GetUInt16(int columnIndex);
[<System.CLSCompliant(false)>]
member this.GetUInt16 : int -> uint16
Public Function GetUInt16 (columnIndex As Integer) As UShort
参数
- columnIndex
- Int32
缓冲区行中该列的索引。
返回
ushort 存储在缓冲列中。
- 属性
注解
该方法适用于集成服务中的数据 DT_UI2 类型。
如果缓冲列DataType不是,则PipelineBuffer产生一个UnsupportedBufferDataTypeExceptionDT_UI2。
如果列的值为空,则 PipelineBuffer 产生一个 ColumnIsNullException。 你可以通过调用方法 IsNull 来检查 null。
有关集成服务数据类型的完整列表以及该类中用于各类型的对应Get和Set方法PipelineBuffer,请参见“在数据流中与数据类型工作”。