DbParameter.IsNullable 屬性

定義

取得或設定值,這個值指出該參數是否接受 null 值。

public:
 abstract property bool IsNullable { bool get(); void set(bool value); };
public abstract bool IsNullable { get; set; }
[System.ComponentModel.Browsable(false)]
public abstract bool IsNullable { get; set; }
member this.IsNullable : bool with get, set
[<System.ComponentModel.Browsable(false)>]
member this.IsNullable : bool with get, set
Public MustOverride Property IsNullable As Boolean

屬性值

如果接受 null 值則為 true;否則為 false。 預設為 false

屬性

備註

Null 值是使用 DBNull 類別來處理。

適用於

另請參閱