SPLanguageSettings.TryDetermineLanguage method (String[], String[], LanguageDecisionOptions, String)
試著判斷要使用的最佳文化特性。這個多載可讓自訂選項
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function TryDetermineLanguage ( _
supportedLanguages As String(), _
desiredLanguages As String(), _
options As LanguageDecisionOptions, _
<OutAttribute> ByRef language As String _
) As Boolean
'用途
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
)
參數
supportedLanguages
Type: []支援的文化特性代碼清單
desiredLanguages
Type: []慣用文化特性代碼清單
options
Type: Microsoft.SharePoint.LanguageDecisionOptions要傳遞至後援的演算法,以自訂行為的旗標
language
Type: System.String儲存選取的語言
傳回值
Type: System.Boolean
如果語言程式成功地選取,則為 false,則為 true。