Partager via


IsNull méthode

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

Espace de noms :  Microsoft.SqlServer.Dts.Pipeline
Assembly :  Microsoft.SqlServer.PipelineHost (dans Microsoft.SqlServer.PipelineHost.dll)

Syntaxe

'Déclaration
Public Function IsNull ( _
    columnIndex As Integer _
) As Boolean
'Utilisation
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

Paramètres

Valeur de retour

Type : System. . :: . .Boolean
true if the column contains nullNothingnullptrunitune référence Null (Nothing dans Visual Basic); otherwise, false.

Notes

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 null Nothing nullptr unit une référence Null (Nothing dans Visual Basic) .