DBNull Field
Collapse the table of content
Expand the table of content

Convert.DBNull Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public static readonly Object DBNull

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

outputBlock.Text += Convert.DBNull.Equals(DBNull.Value) + Environment.NewLine;
// Displays True.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft