共用方式為


UserDefinedType.IsNullable 屬性

Gets the Boolean property that specifies whether the alias data type accepts null values.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsNullable As Boolean 
    Get
'用途
Dim instance As UserDefinedType 
Dim value As Boolean 

value = instance.IsNullable
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsNullable { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsNullable {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsNullable : bool
function get IsNullable () : boolean

屬性值

型別:System.Boolean
A Boolean value that specifies whether the alias data type accepts null values.If True, the alias data type can accept null values.If False (default), the alias data type is does not accept null values.

範例

使用 CLR 使用者定義型別

請參閱

參考

UserDefinedType 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用資料類型

CREATE TYPE (Transact-SQL)