다음을 통해 공유


IsDBNull 메서드

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

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient.dll의 Microsoft.AnalysisServices.AdomdClient

구문

‘선언
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 nullNothingnullptrunitnull 참조(Visual Basic에서는 Nothing); false otherwise.

구현

IDataRecord. . :: . .IsDBNull(Int32)

주의

Call this method to check for null Nothing nullptr unit null 참조(Visual Basic에서는 Nothing) column values before calling the typed methods used to retrieve column values (for example, GetByte, GetChar, and so on), to avoid raising an error.