Share via


SetInt16 メソッド

バッファ列に 16 ビットの符号付き整数を割り当てます。

名前空間:  Microsoft.SqlServer.Dts.Pipeline
アセンブリ:  Microsoft.SqlServer.PipelineHost (Microsoft.SqlServer.PipelineHost.dll)

構文

'宣言
Public Sub SetInt16 ( _
    columnIndex As Integer, _
    value As Short _
)
'使用
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim value As Short

instance.SetInt16(columnIndex, value)
public void SetInt16(
    int columnIndex,
    short value
)
public:
void SetInt16(
    int columnIndex, 
    short value
)
member SetInt16 : 
        columnIndex:int * 
        value:int16 -> unit 
public function SetInt16(
    columnIndex : int, 
    value : short
)

パラメーター

説明

SetInt16 メソッドは、columnIndex パラメータで指定されたバッファ列に short を割り当てます。

このメソッドは、Integration Services の DT_I2 データ型に有効です。

バッファ列に割り当てられている値が short ではないか、または列のデータ型が DT_I2 ではない場合、UnsupportedBufferDataTypeException が発生します。

Integration Services のデータ型と、それぞれのデータ型に対して使用する、PipelineBuffer クラスの対応する Get メソッドおよび Set メソッドの一覧については、「データ フロー内のデータ型の処理」を参照してください。