Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPLanguage class

Represents a natural language used within the context of Microsoft SharePoint Foundation.

System.Object
  Microsoft.SharePoint.SPLanguage

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableTypeAttribute]
[ClientCallableTypeAttribute(Name = "Language", ValueObject = true, ServerTypeId = "{EAE9F1B5-1AE9-417B-9A8B-04A1B4C05A4B}", 
	SampleUrl = "{apiroot}/sp_serversettings.getglobalinstalledlanguages({compatibilitylevel})")]
public class SPLanguage

Use the GlobalServerLanguage or ServerLanguage property of the SPRegionalSettings class to return a single SPLanguage object. Otherwise, use the GlobalInstalledLanguages or InstalledLanguages property of the SPRegionalSettings class to return the collection of languages in a deployment of SharePoint Foundation.

Use an indexer to return a single language from the collection. For example, if the collection is assigned to a variable named myLanguages, use myLanguages[index] in C#, or myLanguages(index) in Visual Basic, where index is the index number of the language in the collection.

Use the Language property of the SPWeb class to return the locale identifier (LCID) of a language.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.