共用方式為


Column.Nullable 屬性

Gets or sets the Boolean property value that specifies whether the column can accept null values.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property Nullable As Boolean 
    Get 
    Set
'用途
Dim instance As Column 
Dim value As Boolean 

value = instance.Nullable

instance.Nullable = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool Nullable { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property bool Nullable {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member Nullable : bool with get, set
function get Nullable () : boolean 
function set Nullable (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether the column can accept null values.If True, the column can accept null values. Otherwise, False (default).

範例

使用資料庫物件

請參閱

參考

Column 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE TABLE (Transact-SQL)