Microsoft.SharePoint


SPLocale Class (Microsoft.SharePoint)
Represents the information for a locale that can be set in a SharePoint site, including the display name and locale identifier (LCID). 

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class SPLocale
Visual Basic (Usage)
Dim instance As SPLocale
C#
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public class SPLocale
Remarks

Use the Locale property of the SPWeb class to return the LCID of a subsite's locale. Otherwise, use the Locales property of the SPRegionalSettings class to return an SPLocaleCollection object that represents the collection of locales for the subsite. Use an indexer to return a single locale from the collection. For example, if the collection is assigned to a variable named myLocales, use myLocales[index] in Microsoft Visual C#, or myLocales(index) in Microsoft Visual Basic, where index is the index number of the locale in the collection.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPLocale
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Tags :


Page view tracker