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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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