SPWeb.Locale Property
Gets or sets the locale that is used when time, currency and numeric fields are rendered on the website.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property Locale As CultureInfo
Get
Set
'Usage
Dim instance As SPWeb
Dim value As CultureInfo
value = instance.Locale
instance.Locale = value
public CultureInfo Locale { get; set; }
Property Value
Type: System.Globalization.CultureInfo
An object with culture-specific information.
Remarks
The locale of a website is used in rendering time, currency and numeric fields. It is different from the default language (the value of the Language property) in that the default language is set when a new site is created and cannot be changed. Initially, the locale is set to be the same as the default language, but it can later be changed by setting the Locale property.