IUITestEventNotify.Notify 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过 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 ,用于指定事件的类型。