Share via


SynchronizedInputPattern.StartListening(SynchronizedInputType) メソッド

定義

指定された型の入力のリッスンをプロバイダーが開始するよう指定します。

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

パラメーター

inputType
SynchronizedInputType

リッスンする入力の型。

注釈

WPF は、一致する入力を見つけると、受信イベントのルートを確認します。 入力をリッスンしているオートメーション要素がルートにない場合、入力は破棄され、 InputDiscardedEvent イベントが発生します。 入力がその型をリッスンしているオートメーション要素によって受信されると、 InputReachedTargetEvent イベントが発生します。それ以外の InputReachedOtherElementEvent 場合は、イベントが発生します。

入力を受け取った後、プロバイダーはリッスンを停止し、正常に続行します。

適用対象