IUITestEventNotify.Notify 方法

定义

通过 IUITechnologyManager 添加的事件的回调方法。 AddEventHandler。 回调应发生在与用于添加事件处理程序的线程不同的线程上,以确保回调不会阻止添加和移除事件处理程序。

public:
 void Notify(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ source, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ target, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, System::Object ^ eventArgs);
public void Notify (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement source, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement target, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, object eventArgs);
abstract member Notify : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * obj -> unit
Public Sub Notify (source As IUITechnologyElement, target As IUITechnologyElement, eventType As UITestEventType, eventArgs As Object)

参数

source
IUITechnologyElement

一个 IUITechnologyElement 表示源元素的。

target
IUITechnologyElement

一个 IUITechnologyElement 表示目标元素的。

eventType
UITestEventType

枚举的一个成员 UITestEventType ,用于指定事件的类型。

eventArgs
Object

EventArgs 事件提供的对象。

适用于