UITechnologyManagerProxy.RemoveEventHandler Method
Removes an event handler.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Overrides Function RemoveEventHandler ( _
element As IUITechnologyElement, _
eventType As UITestEventType, _
eventSink As IUITestEventNotify _
) As Boolean
public override bool RemoveEventHandler(
IUITechnologyElement element,
UITestEventType eventType,
IUITestEventNotify eventSink
)
public:
virtual bool RemoveEventHandler(
IUITechnologyElement^ element,
UITestEventType eventType,
IUITestEventNotify^ eventSink
) override
abstract RemoveEventHandler :
element:IUITechnologyElement *
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
override RemoveEventHandler :
element:IUITechnologyElement *
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
public override function RemoveEventHandler(
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 removed.
eventType
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeThe type of event to listen to.
eventSink
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyThe event sink interface that was registered.
Return Value
Type: Boolean
True if the eventType is supported and remove is successful, false otherwise.
Implements
IUITechnologyManager.RemoveEventHandler(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.