Export (0) Print
Expand All

SqlCeDataReader.IsDBNull Method

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

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
public override bool IsDBNull(
	int ordinal
)

Parameters

ordinal
Type: System.Int32
The zero-based column ordinal.

Return Value

Type: System.Boolean
true if the specified column value is equivalent to DBNull; otherwise, false.

Implements

IDataRecord.IsDBNull(Int32)

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.

Show:
© 2014 Microsoft