Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
element
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementThe element and its descendants for which this event should be fired.
eventType
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeThe type of event to listen to.
eventSink
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyThe event sink which should be notified when the event occurs.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.