Share via


Server.GetStringComparer Method

Returns the comparer object corresponding to the collation string passed.

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

Syntax

'Declaration
Public Function GetStringComparer ( _
    collationName As String _
) As IComparer
'Usage
Dim instance As Server 
Dim collationName As String 
Dim returnValue As IComparer 

returnValue = instance.GetStringComparer(collationName)
public IComparer GetStringComparer(
    string collationName
)
public:
IComparer^ GetStringComparer(
    String^ collationName
)
member GetStringComparer : 
        collationName:string -> IComparer
public function GetStringComparer(
    collationName : String
) : IComparer

Parameters

Return Value

Type: System.Collections.IComparer
The comparer object corresponding to the collation string passed.

Remarks

T:Microsoft.SqlServer.Management.Smo.AffinityInfo

See Also

Reference

Server Class

Microsoft.SqlServer.Management.Smo Namespace