AutomationEvent.LookupById Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves an AutomationEvent that encapsulates the specified numerical identifier.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

public static AutomationEvent LookupById(
	int id
)

Parameters

id
Type: System.Int32

Identifier of the event.

Return Value

Type: System.Windows.Automation.AutomationEvent

An AutomationEvent that encapsulates the specified numerical identifier.

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.

.NET Framework
Available since 3.0
Return to top
Show: