Share via


SPRegionalSettings.GetDefaultCollation method

Returns the default collation used on the site based on the specified locale identifier (LCID).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetDefaultCollation ( _
    lcid As Integer _
) As Integer
'Usage
Dim instance As SPRegionalSettings
Dim lcid As Integer
Dim returnValue As Integer

returnValue = instance.GetDefaultCollation(lcid)
public int GetDefaultCollation(
    int lcid
)

Parameters

  • lcid
    Type: System.Int32

    A 32-bit integer that specifies the LCID.

Return value

Type: System.Int32
A 32-bit integer that represents the collation.

Remarks

A collation specifies the bit patterns that represent each character and the rules by which characters are sorted and compared.

For more information about the values that are returned by this method, see Collation property.

See also

Reference

SPRegionalSettings class

SPRegionalSettings members

Microsoft.SharePoint namespace