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.
IUITechnologyManager::AddEventHandler Method (IUITechnologyElement^, UITestEventType, IUITestEventNotify^)
Adds an event handler.
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
[DispIdAttribute(12)]
bool AddEventHandler(
IUITechnologyElement^ element,
UITestEventType eventType,
IUITestEventNotify^ eventSink
)
Parameters
- element
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^
An IUITechnologyElement object.
- 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: