DBNull::Value Field
Represents the sole instance of the DBNull class.
Assembly: mscorlib (in mscorlib.dll)
DBNull is a singleton class, which means only this instance of this class can exist.
If a database field has missing data, you can use the DBNull::Value property to explicitly assign a DBNull object value to the field. However, most data providers do this automatically.
To evaluate database fields to determine whether their values are DBNull, you can pass the field value to the DBNull.Value.Equals method. However, this method is rarely used because there are a number of other ways to evaluate a database field for missing data. These include the Visual Basic IsDBNull function, the Convert::IsDBNull method, the DataTableReader::IsDBNull method, the IDataRecord::IsDBNull method, and several other methods.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.