Bewerken

Share via


AutomationEvent.LookupById(Int32) Method

Definition

Retrieves an AutomationEvent that encapsulates the specified numerical identifier.

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

Parameters

id
Int32

Identifier of the event.

Returns

An AutomationEvent that encapsulates the specified numerical identifier.

Remarks

Normally, events are identified by an AutomationEvent object. This method can be used by UI Automation providers to create such an object when only the numerical identifier (the Id inherited from AutomationIdentifier) is known.

Applies to