Freigeben über


PipelineBuffer.IsNull-Methode

Checks to see if the data in a buffer column is null.

Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

Syntax

'Declaration
Public Function IsNull ( _
    columnIndex As Integer _
) As Boolean
'Usage
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

Parameter

  • columnIndex
    Typ: System.Int32
    The index of the column in the buffer row.

Rückgabewert

Typ: System.Boolean
true if the column contains nullein NULL-Verweis (Nothing in Visual Basic); otherwise, false.

Hinweise

It is recommended that you call the IsNull method prior to calling a data type accessor method, such as GetBoolean, because the PipelineBuffer will produce a ColumnIsNullException if the column is nullein NULL-Verweis (Nothing in Visual Basic).

Siehe auch

Verweis

PipelineBuffer Klasse

Microsoft.SqlServer.Dts.Pipeline-Namespace