IUITestEventNotify::NotifyMultiSource Method (array<IUITechnologyElement^>^, IUITechnologyElement^, UITestEventType, Object^, ElementForThumbnailCapture)
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.
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
void NotifyMultiSource( array<IUITechnologyElement^>^ sources, IUITechnologyElement^ target, UITestEventType eventType, Object^ eventArgs, ElementForThumbnailCapture elementForThumbnailImage )
Parameters
- sources
-
Type:
array<Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^>^
The elements that are the sources of the event.
- target
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^
The element that is the target of the event.
- eventType
-
Type:
Microsoft.VisualStudio.TestTools.UITest.Extension::UITestEventType
The type of the event.
- eventArgs
-
Type:
System::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
- Type: Microsoft.VisualStudio.TestTools.UITest.Extension::ElementForThumbnailCapture
In some cases, one of the source elements and the target element will be the same.
However, this might not be always the case. For example, clicking a label for a check box changes the state of the check box. Here, the source is the label and the target is the check box. Similarly, when the target is ComboBox, the source could be the Edit or List within it.
The sources can be null, which means source and target are the same.