IUITestService.AddEventHandler Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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


Function AddEventHandler ( _
    element As IAfxElement, _
    eventType As EventType, _
    eventSink As IEventNotify _
) As Boolean
Dim instance As IUITestService
Dim element As IAfxElement
Dim eventType As EventType
Dim eventSink As IEventNotify
Dim returnValue As Boolean

returnValue = instance.AddEventHandler(element, _
    eventType, eventSink)
bool AddEventHandler(
    IAfxElement element,
    EventType eventType,
    IEventNotify eventSink
bool AddEventHandler(
    IAfxElement^ element, 
    EventType eventType, 
    IEventNotify^ eventSink
function AddEventHandler(
    element : IAfxElement, 
    eventType : EventType, 
    eventSink : IEventNotify
) : boolean
abstract AddEventHandler : 
        element:IAfxElement * 
        eventType:EventType * 
        eventSink:IEventNotify -> bool 


Return Value

Type: System.Boolean

.NET Framework Security

See Also


IUITestService Interface

IUITestService Members

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace