Compartilhar via


Propriedade do RDL UserDefinedDataType.Collation

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property Collation As String 
    Get
'Uso
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

Valor da propriedade

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

Comentários

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.

Exemplos

Trabalhando com tipos de dados

Consulte também

Referência

UserDefinedDataType Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Tipos de dados (Mecanismo de Banco de Dados)

CREATE TYPE (Transact-SQL)