Convert.DBNull Field

Definition

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

public static readonly object DBNull;
Field Value

Remarks

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

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

Applies to