Share via


CollationInfo.GetCollationInfo Method (Int32, CompareOptions)

Gets the CollationInfo object for the specified culture identifier and comparison options.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Shared Function GetCollationInfo ( _
    lcid As Integer, _
    compareOptions As CompareOptions _
) As CollationInfo
'Usage
Dim lcid As Integer
Dim compareOptions As CompareOptions
Dim returnValue As CollationInfo

returnValue = CollationInfo.GetCollationInfo(lcid, _
    compareOptions)
public static CollationInfo GetCollationInfo(
    int lcid,
    CompareOptions compareOptions
)
public:
static CollationInfo^ GetCollationInfo(
    int lcid, 
    CompareOptions compareOptions
)
static member GetCollationInfo : 
        lcid:int * 
        compareOptions:CompareOptions -> CollationInfo 
public static function GetCollationInfo(
    lcid : int, 
    compareOptions : CompareOptions
) : CollationInfo

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.CollationInfo
A CollationInfo object.

Remarks

Returns null if collation information is not found.