AutomationEvent.LookupById(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した数値識別子をカプセル化する AutomationEvent を取得します。
public:
static System::Windows::Automation::AutomationEvent ^ LookupById(int id);
public static System.Windows.Automation.AutomationEvent LookupById (int id);
static member LookupById : int -> System.Windows.Automation.AutomationEvent
Public Shared Function LookupById (id As Integer) As AutomationEvent
パラメーター
- id
- Int32
イベントの識別子。
戻り値
指定した数値識別子をカプセル化する AutomationEvent。
注釈
通常、イベントはオブジェクトによって AutomationEvent 識別されます。 このメソッドは、数値識別子 (継承元AutomationIdentifier) のみがわかっているときに、UI オートメーション プロバイダーがこのようなオブジェクトをId作成するために使用できます。