Partager via


Méthode AdomdDataReader.IsDBNull

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

Espace de noms :  Microsoft.AnalysisServices.AdomdClient
Assembly :  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Syntaxe

'Déclaration
Public Function IsDBNull ( _
    ordinal As Integer _
) As Boolean
'Utilisation
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

Paramètres

  • ordinal
    Type : System.Int32
    The zero-based ordinal position of the column to find.

Valeur de retour

Type : System.Boolean
A Boolean containing true if the column is set to nullune référence Null (Nothing dans Visual Basic); false otherwise.

Implémente

IDataRecord.IsDBNull(Int32)

Notes

Call this method to check for nullune référence Null (Nothing dans 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.

Voir aussi

Référence

AdomdDataReader Classe

Espace de noms Microsoft.AnalysisServices.AdomdClient