次の方法で共有


PipelineBuffer.IsNull メソッド

バッファー列のデータが null であるかどうかを確認します。

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

構文

'宣言
Public Function IsNull ( _
    columnIndex As Integer _
) As Boolean
'使用
Dim instance As PipelineBuffer 
Dim columnIndex As Integer 
Dim returnValue As Boolean 

returnValue = instance.IsNull(columnIndex)
public bool IsNull(
    int columnIndex
)
public:
bool IsNull(
    int columnIndex
)
member IsNull : 
        columnIndex:int -> bool
public function IsNull(
    columnIndex : int
) : boolean

パラメーター

  • columnIndex
    型: System.Int32
    バッファー行の列のインデックスです。

戻り値

型: System.Boolean
列に nullNULL 参照 (Visual Basic では Nothing) が含まれる場合は true、含まれない場合は false です。

説明

列が nullNULL 参照 (Visual Basic では Nothing) の場合、PipelineBufferColumnIsNullException を生成するため、GetBoolean など、データ型のアクセサー メソッドを呼び出す前に、IsNull メソッドを呼び出すことをお勧めします。

関連項目

参照

PipelineBuffer クラス

Microsoft.SqlServer.Dts.Pipeline 名前空間