Share via


SPRegionalSettings.GlobalInstalledLanguages Property

Gets the collection of language packs that are installed on the server.

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

Syntax

Public Shared ReadOnly Property GlobalInstalledLanguages As SPLanguageCollection
    Get

Dim value As SPLanguageCollection

value = SPRegionalSettings.GlobalInstalledLanguages
public static SPLanguageCollection GlobalInstalledLanguages { get; }

Property Value

Type: Microsoft.SharePoint.SPLanguageCollection
An SPLanguageCollection object that represents the installed language packs.

Examples

The following code example returns the collection of installed languages packs on the server.

Dim languagesInstalled As SPLanguageCollection = SPRegionalSettings.GlobalInstalledLanguages
Dim language As SPLanguage
For Each language In  languagesInstalled
    Console.WriteLine(("Language: " + language.DisplayName))
Next language
SPLanguageCollection collLanguagesAvailable = SPRegionalSettings.GlobalInstalledLanguages;
foreach (SPLanguage oLanguageAvailable in collLanguagesAvailable)
{
    Console.WriteLine("Language: " + oLanguageAvailable.DisplayName);
}

See Also

Reference

SPRegionalSettings Class

SPRegionalSettings Members

Microsoft.SharePoint Namespace