Freigeben über


IDatabaseOptions.Collation-Eigenschaft

Gets or sets the default collation used by the database.

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

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("Database_CollationDesc")> _
<DisplayNameKeyAttribute("Database_CollationName")> _
Property Collation As String 
    Get 
    Set
'Usage
Dim instance As IDatabaseOptions 
Dim value As String 

value = instance.Collation

instance.Collation = value
[DisplayDescriptionKeyAttribute("Database_CollationDesc")]
[DisplayNameKeyAttribute("Database_CollationName")]
string Collation { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_CollationDesc")]
[DisplayNameKeyAttribute(L"Database_CollationName")]
property String^ Collation {
    String^ get ();
    void set (String^ value);
}
[<DisplayDescriptionKeyAttribute("Database_CollationDesc")>]
[<DisplayNameKeyAttribute("Database_CollationName")>]
abstract Collation : string with get, set
function get Collation () : String 
function set Collation (value : String)

Eigenschaftswert

Typ: System.String
A String value that specifies the name of the default collation.

Siehe auch

Verweis

IDatabaseOptions Schnittstelle

Microsoft.SqlServer.Management.Smo-Namespace