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.
UITechnologyManagerProxy::AddEventHandler Method (IUITechnologyElement^, UITestEventType, IUITestEventNotify^)
Adds an event handler.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
public: virtual bool AddEventHandler( IUITechnologyElement^ element, UITestEventType eventType, IUITestEventNotify^ eventSink ) override
Parameters
- element
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^
The element and its descendants for which this event should be fired.
- eventType
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::UITestEventType
The type of event to listen to.
- eventSink
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITestEventNotify^
The event sink which should be notified when the event occurs.
Return Value
Type: System::BooleanTrue if the eventType is supported and add is successful, false otherwise.
Show: