ISynchronizedInputProvider.StartListening(SynchronizedInputType) 方法

定義

指定提供者開始接聽指定之型別的輸入。

public:
 void StartListening(System::Windows::Automation::SynchronizedInputType inputType);
public void StartListening (System.Windows.Automation.SynchronizedInputType inputType);
abstract member StartListening : System.Windows.Automation.SynchronizedInputType -> unit
Public Sub StartListening (inputType As SynchronizedInputType)

參數

inputType
SynchronizedInputType

要聆聽的輸入類型。

備註

當 WPF 找到相符的輸入時,它會檢查傳入事件的路由。 如果接聽輸入的自動化專案不在路由中,則會捨棄輸入並 InputDiscardedEvent 引發 事件。 如果輸入是由接聽該類型的自動化專案所接收, InputReachedTargetEvent 則會引發事件, InputReachedOtherElementEvent 否則會引發事件。

收到輸入之後,提供者會停止接聽並繼續正常。

適用於