SPWeb.Locale 属性
Gets or sets the locale that is used when time, currency and numeric fields are rendered on the website.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property Locale As CultureInfo
Get
Set
用法
Dim instance As SPWeb
Dim value As CultureInfo
value = instance.Locale
instance.Locale = value
public CultureInfo Locale { get; set; }
属性值
类型:System.Globalization.CultureInfo
An object with culture-specific information.
备注
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.