Share via


IUITechnologyManager.RemoveEventHandler Method

Definition

Removes the specified event from the given element and all its descendents.

public:
 bool RemoveEventHandler(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITestEventNotify ^ eventSink);
[System.Runtime.InteropServices.DispId(13)]
public bool RemoveEventHandler (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify eventSink);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member RemoveEventHandler : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotify -> bool
Public Function RemoveEventHandler (element As IUITechnologyElement, eventType As UITestEventType, eventSink As IUITestEventNotify) As Boolean

Parameters

eventType
UITestEventType

A member of the UITestEventType enumeration.

eventSink
IUITestEventNotify

An IUITestEventNotify object that represents the registered event sink.

Returns

true if the event was successfully removed; otherwise, false.

Attributes

Applies to