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
- collationName
Type: System.String
The name of the collation.
Return Value
Type: System.Collections.IComparer
The comparer object corresponding to the collation string passed.
Remarks
T:Microsoft.SqlServer.Management.Smo.AffinityInfo