共用方式為


NullableConstraint.Nullable 屬性

取得或設定此資料行是否可以為 NULL。

命名空間:  Microsoft.Data.Schema.ScriptDom.Sql
組件:  Microsoft.Data.Schema.ScriptDom.Sql (在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

語法

'宣告
Public Property Nullable As Boolean
    Get
    Set
public bool Nullable { get; set; }
public:
property bool Nullable {
    bool get ();
    void set (bool value);
}
member Nullable : bool with get, set
function get Nullable () : boolean
function set Nullable (value : boolean)

屬性值

型別:System.Boolean
如果此資料行可以為 NULL,會傳回 true,否則傳回 false。

.NET Framework 安全性

請參閱

參考

NullableConstraint 類別

Microsoft.Data.Schema.ScriptDom.Sql 命名空間