Поделиться через


Метод 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 nullпустая ссылка (Nothing в Visual Basic); 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 в Visual Basic).

См. также

Справочник

PipelineBuffer Класс

Пространство имен Microsoft.SqlServer.Dts.Pipeline