次の方法で共有


IsNull メソッド

指定した列の値が nullNothingnullptrunitNULL 参照 (Visual Basic では Nothing) かどうかを示す値を返します。

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

構文

'宣言
Protected Function IsNull ( _
    ColumnIndex As Integer _
) As Boolean
'使用
Dim ColumnIndex As Integer
Dim returnValue As Boolean

returnValue = Me.IsNull(ColumnIndex)
protected bool IsNull(
    int ColumnIndex
)
protected:
bool IsNull(
    int ColumnIndex
)
member IsNull : 
        ColumnIndex:int -> bool 
protected function IsNull(
    ColumnIndex : int
) : boolean

パラメーター

戻り値

型: System. . :: . .Boolean
指定した列の値が nullNothingnullptrunitNULL 参照 (Visual Basic では Nothing) である場合は true、null ではない場合は false です。

説明

スクリプト コンポーネントの開発者は、直接的には ScriptBuffer クラスを使用しませんが、コンポーネントの入力および出力を表す BufferWrapper プロジェクト アイテムの派生クラスを通じて、間接的に使用します。

派生クラスには各列の <ColumnX>_IsNull プロパティが含まれているため、開発者が IsNull メソッドを使用する必要はありません。

使用例

自動生成された BufferWrapper プロジェクト アイテムからとった次のサンプル コードは、スクリプト コンポーネントが IsNull メソッドを使用する方法を示しています。

    Public Property [city_IsNull] As Boolean
        Get
            Return IsNull(1)
        End Get
        Set
            SetNull(1)
        End Set
    End Property