Compartilhar via


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

Tente determinar a melhor cultura a ser usada. Essa sobrecarga permite opções personalizadas

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

Syntax

'Declaração
Public Shared Function TryDetermineLanguage ( _
    supportedLanguages As String(), _
    desiredLanguages As String(), _
    options As LanguageDecisionOptions, _
    <OutAttribute> ByRef language As String _
) As Boolean
'Uso
Dim supportedLanguages As String()
Dim desiredLanguages As String()
Dim options As LanguageDecisionOptions
Dim language As String
Dim returnValue As Boolean

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

Parâmetros

  • supportedLanguages
    Type: []

    Lista de códigos de cultura com suporte

  • desiredLanguages
    Type: []

    Lista de códigos de cultura preferencial

  • language
    Type: System.String

    Onde será armazenado o idioma selecionado

Valor retornado

Type: System.Boolean
True se um idioma foi marcada com êxito, FALSO caso contrário

Ver também

Referência

SPLanguageSettings class

SPLanguageSettings members

TryDetermineLanguage overload

Microsoft.SharePoint namespace