Share via


IUITechnologyManager.AddEventHandler Method

Definition

Adds an event handler.

public:
 bool AddEventHandler(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITestEventNotify ^ eventSink);
[System.Runtime.InteropServices.DispId(12)]
public bool AddEventHandler (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify eventSink);
[<System.Runtime.InteropServices.DispId(12)>]
abstract member AddEventHandler : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify -> bool
Public Function AddEventHandler (element As IUITechnologyElement, eventType As UITestEventType, eventSink As IUITestEventNotify) As Boolean

Parameters

eventType
UITestEventType

A member of the UITestEventType enumeration that specifies the type of event.

eventSink
IUITestEventNotify

An IUITestEventNotify that logs the events.

Returns

true if the event type is supported and is successfully added; otherwise, false.

Attributes

Applies to