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 时引发。

适用于

另请参阅