Convert.DBNull Field

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

Public Shared ReadOnly DBNull As Object

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: