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


Метод IsDBNull

Returns a Boolean that contains a value indicating whether the column is set to null.

Пространство имен:  Microsoft.AnalysisServices.AdomdClient
Сборка:  Microsoft.AnalysisServices.AdomdClient (в Microsoft.AnalysisServices.AdomdClient.dll)

Синтаксис

'Декларация
Public Function IsDBNull ( _
    ordinal As Integer _
) As Boolean
'Применение
Dim instance As AdomdDataReader
Dim ordinal As Integer
Dim returnValue As Boolean

returnValue = instance.IsDBNull(ordinal)
public bool IsDBNull(
    int ordinal
)
public:
virtual bool IsDBNull(
    int ordinal
) sealed
abstract IsDBNull : 
        ordinal:int -> bool 
override IsDBNull : 
        ordinal:int -> bool 
public final function IsDBNull(
    ordinal : int
) : boolean

Параметры

Возвращаемое значение

Тип System. . :: . .Boolean
A Boolean containing true if the column is set to nullNothingnullptrunitпустая ссылка (Nothing в Visual Basic); false otherwise.

Реализует интерфейс

IDataRecord. . :: . .IsDBNull(Int32)

Замечания

Call this method to check for null Nothing nullptr unit пустая ссылка (Nothing в Visual Basic) column values before calling the typed methods used to retrieve column values (for example, GetByte, GetChar, and so on), to avoid raising an error.