共用方式為


PipelineBuffer.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

參數

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

傳回值

型別:System.Boolean
true if the column contains nullnull 參考 (在 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 nullnull 參考 (在 Visual Basic 中為 Nothing).

請參閱

參考

PipelineBuffer 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間