UserDefinedDataType.Collation 属性

Gets the collation assigned to the user-defined data type.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property Collation As String 
    Get
用法
Dim instance As UserDefinedDataType 
Dim value As String 

value = instance.Collation
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string Collation { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ Collation {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member Collation : string
function get Collation () : String

属性值

类型:System.String
A String value that specifies the collation used by the user-defined data type.

注释

The default collation is defined at a Server object level; however, individual columns and user-defined data types can have specific collations. A table that contains columns in languages with different alphabets require different collations on different columns, for example.

示例

使用数据类型

请参阅

参考

UserDefinedDataType 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

数据类型(数据库引擎)

CREATE TYPE (Transact-SQL)