다음을 통해 공유


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.

Public Overridable Function IsDBNull( _
   ByVal ordinal As Integer _) As Boolean Implements IDataRecord.IsDBNull
[C#]
public virtual bool IsDBNull(intordinal);
[C++]
public: virtual bool IsDBNull(intordinal);
[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