SPLanguageSettings.PreferredSearchLanguages property
Gets preferred search languages. General priority is as follows: 1. If there are preferred "Content" (Content and Search) languages, use those. 2. If no Content languages, use an augmentation of MUI languages and Client (browser) languages. 3. If there are no MUI/Client languages, use the web language 4. If there is no context to get the web (eg: In Powershell), return empty set.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property PreferredSearchLanguages As SPLanguageCollection
Get
'Usage
Dim instance As SPLanguageSettings
Dim value As SPLanguageCollection
value = instance.PreferredSearchLanguages
public SPLanguageCollection PreferredSearchLanguages { get; }
Property value
Type: Microsoft.SharePoint.SPLanguageCollection