Share via


UITechnologyManager.AddEventHandler Method

Adds an event handler to this technology manager.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public MustOverride Function AddEventHandler ( _
    element As IUITechnologyElement, _
    eventType As UITestEventType, _
    eventSink As IUITestEventNotify _
) As Boolean
public abstract bool AddEventHandler(
    IUITechnologyElement element,
    UITestEventType eventType,
    IUITestEventNotify eventSink
)
public:
virtual bool AddEventHandler(
    IUITechnologyElement^ element, 
    UITestEventType eventType, 
    IUITestEventNotify^ eventSink
) abstract
abstract AddEventHandler : 
        element:IUITechnologyElement * 
        eventType:UITestEventType * 
        eventSink:IUITestEventNotify -> bool
public abstract function AddEventHandler(
    element : IUITechnologyElement, 
    eventType : UITestEventType, 
    eventSink : IUITestEventNotify
) : boolean

Parameters

Return Value

Type: Boolean
true if the event type is supported and is successfully added; otherwise, false.

Implements

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

.NET Framework Security

See Also

Reference

UITechnologyManager Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement

UITestEventType

IUITestEventNotify