Share via


SPLanguageSettings.TryDetermineLanguage method (String[], String[], String)

Try to determine the best culture to use. This overload assumes default options

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

Syntax

'Declaration
Public Shared Function TryDetermineLanguage ( _
    supportedLanguages As String(), _
    desiredLanguages As String(), _
    <OutAttribute> ByRef language As String _
) As Boolean
'Usage
Dim supportedLanguages As String()
Dim desiredLanguages As String()
Dim language As String
Dim returnValue As Boolean

returnValue = SPLanguageSettings.TryDetermineLanguage(supportedLanguages, _
    desiredLanguages, language)
public static bool TryDetermineLanguage(
    string[] supportedLanguages,
    string[] desiredLanguages,
    out string language
)

Parameters

  • supportedLanguages
    Type: []
  • desiredLanguages
    Type: []

Return value

Type: System.Boolean
True if a language was successfully selected, false otherwise

See also

Reference

SPLanguageSettings class

SPLanguageSettings members

TryDetermineLanguage overload

Microsoft.SharePoint namespace