Share via


UITechnologyManager.AddGlobalEventHandler Method

Definition

Adds a global event sink to this technology manager.

public:
 abstract bool AddGlobalEventHandler(Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITestEventNotify ^ eventSink);
public abstract bool AddGlobalEventHandler (Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify eventSink);
abstract member AddGlobalEventHandler : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify -> bool
Public MustOverride Function AddGlobalEventHandler (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.

Applies to