Share via


IUITestEventNotify.NotifyMultiSource 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 NotifyMultiSource(cli::array <Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^> ^ sources, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ target, Microsoft::VisualStudio::TestTools::UITest::Extension::UITestEventType eventType, System::Object ^ eventArgs, Microsoft::VisualStudio::TestTools::UITest::Extension::ElementForThumbnailCapture elementForThumbnailImage);
public void NotifyMultiSource (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement[] sources, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement target, Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType eventType, object eventArgs, Microsoft.VisualStudio.TestTools.UITest.Extension.ElementForThumbnailCapture elementForThumbnailImage);
abstract member NotifyMultiSource : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement[] * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventType * obj * Microsoft.VisualStudio.TestTools.UITest.Extension.ElementForThumbnailCapture -> unit
Public Sub NotifyMultiSource (sources As IUITechnologyElement(), target As IUITechnologyElement, eventType As UITestEventType, eventArgs As Object, elementForThumbnailImage As ElementForThumbnailCapture)

Parameters

sources
IUITechnologyElement[]

The elements that are the sources of the event.

target
IUITechnologyElement

The element that is the target of the event.

eventType
UITestEventType

The type of the event.

eventArgs
Object

The event arguments specific to the type of the event. Specifies the element whose vicinity must be captured during an event. The eventArgs will - The actual value (typically string) of the control for UITestEventType.Value The AccessibleStates of the control for UITestEventType.State The System.Drawing.Point for UITestEventType.Hover and so on.

elementForThumbnailImage
ElementForThumbnailCapture

Applies to