Partager via


UITechnologyManagerProxy.AddEventHandler Method

Adds an event handler.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

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

Parameters

Return Value

Type: Boolean
True if the eventType is supported and add is successful, false otherwise.

Implements

IUITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

.NET Framework Security

See Also

Reference

UITechnologyManagerProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace