共用方式為


IUITestEventNotify.Notify Method

Definition

The callback method for the event added via IUITechnologyManager.AddEventHandler. The callback should occur on a different thread than the one used to add the event handler to make sure that the callback is not blocking adding and removing of the event handlers.

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)

Parameters

source
IUITechnologyElement

An IUITechnologyElement that represents the source element.

target
IUITechnologyElement

An IUITechnologyElement that represents the target element.

eventType
UITestEventType

A member of the UITestEventType enumeration that specifies the type of event.

eventArgs
Object

The EventArgs object that is provided for the event.

Applies to