Convert.DBNull 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个常数,用于表示没有数据的数据库列;即数据库为空。
public: static initonly System::Object ^ DBNull;
public static readonly object DBNull;
staticval mutable DBNull : obj
Public Shared ReadOnly DBNull As Object
字段值
注解
字段 DBNull 等效于 DBNull.Value,如以下示例所示。
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.
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:提交和查看相关反馈