Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPLocaleCollection class

Represents a collection of SPLocale objects.

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

public class SPLocaleCollection : SPBaseCollection

Use the Locales property of the SPRegionalSettings class to return the collection of locales for a site.

Use an indexer to return a single locale from the collection. For example, assuming 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft