Convert.DBNull Field

 

A constant that represents a database column that is absent of data; that is, database null.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static readonly object DBNull

Field Value

Type: System.Object

The DBNull field is equivalent to DBNull.Value, as the following example shows.

Console.WriteLine(Convert.DBNull.Equals(DBNull.Value));
// Displays True.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: