The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
UITechnologyManager::AddEventHandler Method (IUITechnologyElement^, UITestEventType, IUITestEventNotify^)
Adds an event handler to this technology manager.
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
public: virtual bool AddEventHandler( IUITechnologyElement^ element, UITestEventType eventType, IUITestEventNotify^ eventSink ) abstract
Parameters
- element
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^
The IUITechnologyElement and its descendents for which this event should be raised.
- eventType
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::UITestEventType
A member of the UITestEventType enumeration that specifies the type of event.
- eventSink
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITestEventNotify^
An IUITestEventNotify that logs the events.
Return Value
Type: System::Booleantrue if the event type is supported and is successfully added; otherwise, false.
Show: