共用方式為


InputLanguageManager.ReportInputLanguageChanging 方法

定義

報告開始 InputLanguageManager 輸入語言的變更。

public:
 bool ReportInputLanguageChanging(System::Globalization::CultureInfo ^ newLanguageId, System::Globalization::CultureInfo ^ previousLanguageId);
public bool ReportInputLanguageChanging (System.Globalization.CultureInfo newLanguageId, System.Globalization.CultureInfo previousLanguageId);
member this.ReportInputLanguageChanging : System.Globalization.CultureInfo * System.Globalization.CultureInfo -> bool
Public Function ReportInputLanguageChanging (newLanguageId As CultureInfo, previousLanguageId As CultureInfo) As Boolean

參數

newLanguageId
CultureInfo

CultureInfo 物件,表示新的輸入語言。

previousLanguageId
CultureInfo

CultureInfo 物件,表示上一個輸入語言。

傳回

true 表示已接受所報告的輸入語言變更;否則為 false

例外狀況

newLanguageIdpreviousLanguageIdnull 時引發。

適用於

另請參閱