DbColumn.AllowDBNull 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個可空的布林值,表示此欄是否 DBNull 允許值,若未設定值則返回 null 。 可設定為
public: property Nullable<bool> AllowDBNull { public:
Nullable<bool> get(); protected:
void set(Nullable<bool> value); };
public bool? AllowDBNull { get; protected set; }
member this.AllowDBNull : Nullable<bool> with get, set
Public Property AllowDBNull As Nullable(Of Boolean)
屬性值
若DBNull允許值進入此欄,則回傳true;否則,。 false 若未設定值,則回傳空參考(Nothing in Visual Basic)。