IUITechnologyManager.RemoveEventHandler Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Removes the specified event from the given element and all its descendents.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Function RemoveEventHandler ( _
element As IUITechnologyElement, _
eventType As UITestEventType, _
eventSink As IUITestEventNotify _
) As Boolean
bool RemoveEventHandler(
IUITechnologyElement element,
UITestEventType eventType,
IUITestEventNotify eventSink
)
bool RemoveEventHandler(
IUITechnologyElement^ element,
UITestEventType eventType,
IUITestEventNotify^ eventSink
)
abstract RemoveEventHandler :
element:IUITechnologyElement *
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
function RemoveEventHandler(
element : IUITechnologyElement,
eventType : UITestEventType,
eventSink : IUITestEventNotify
) : boolean
Parameters
element
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementAn IUITechnologyElement object.
eventType
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeA member of the UITestEventType enumeration.
eventSink
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifyAn IUITestEventNotify object that represents the registered event sink.
Return Value
Type: Boolean
true if the event was successfully removed; otherwise, false.
.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.
See Also
Reference
IUITechnologyManager Interface