UITechnologyManager.AddEventHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an event handler to this technology manager.
public:
abstract bool AddEventHandler(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITestEventNotify ^ eventSink);
public abstract bool AddEventHandler (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify eventSink);
abstract member AddEventHandler : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify -> bool
Public MustOverride Function AddEventHandler (element As IUITechnologyElement, eventType As UITestEventType, eventSink As IUITestEventNotify) As Boolean
Parameters
- element
- IUITechnologyElement
The IUITechnologyElement and its descendents for which this event should be raised.
- 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.