共用方式為


IsNull 方法

Checks to see if the data in a buffer column is 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

參數

傳回值

型別:System. . :: . .Boolean
true if the column contains nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing); otherwise, false.

備註

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 null 參考 (在 Visual Basic 中為 Nothing) .