Condividi tramite


SqlCeDataReader.IsDBNull Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets a value indicating whether the column contains nonexistent or missing values.

  [Visual Basic]
  Public Overridable Function IsDBNull( _
   ByVal 
  ordinal
   As Integer _
) As Boolean Implements IDataRecord.IsDBNull
[C#]
public virtual bool IsDBNull(int ordinal
);
[C++]
public: virtual bool IsDBNull(int ordinal
);
[JScript]
public function IsDBNull(
   ordinal : int) : Boolean;

Parameters

  • ordinal
    The zero-based column ordinal.

Return Value

true if the specified column value is equivalent to DBNull; otherwise, false.

Implements

IDataRecord.IsDBNull

Remarks

Call this method to check for null column values before calling the typed get methods (for example, GetByte, GetGuid, and so on) to avoid raising an error.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.