Export (0) Print
Expand All
Expand Minimize

SqlCeResultSet.IsDBNull Method

Determines if the field at the specified ordinal position is null.

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

public override bool IsDBNull(
	int ordinal


Type: System.Int32
The ordinal position of the column from which to retrieve the value.

Return Value

Type: System.Boolean
True if the specified field is null; otherwise, false.



Returns true only if the corresponding value is equivalent to DBNull or if the object implements IsNullable and IsNull returns true.

Returns false in any other case, including null references and empty strings.

An IndexOutOfRangeException is thrown if no field exists at the specified index.

© 2014 Microsoft