Rediger

Del via


Convert.DBNull Field

Definition

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

public: static initonly System::Object ^ DBNull;
public static readonly object DBNull;
 staticval mutable DBNull : obj
Public Shared ReadOnly DBNull As Object 

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.
printfn $"{Convert.DBNull.Equals DBNull.Value}"
// Displays True.
Console.WriteLine(Convert.DBNull.Equals(DBNull.Value))
' Displays True.

Applies to

See also