Share via


IUITestEventNotify.NotifyMultiSource Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Sub NotifyMultiSource ( _
    sources As IUITechnologyElement(), _
    target As IUITechnologyElement, _
    eventType As UITestEventType, _
    eventArgs As Object, _
    elementForThumbnailImage As ElementForThumbnailCapture _
)
void NotifyMultiSource(
    IUITechnologyElement[] sources,
    IUITechnologyElement target,
    UITestEventType eventType,
    Object eventArgs,
    ElementForThumbnailCapture elementForThumbnailImage
)
void NotifyMultiSource(
    array<IUITechnologyElement^>^ sources, 
    IUITechnologyElement^ target, 
    UITestEventType eventType, 
    Object^ eventArgs, 
    ElementForThumbnailCapture elementForThumbnailImage
)
abstract NotifyMultiSource : 
        sources:IUITechnologyElement[] * 
        target:IUITechnologyElement * 
        eventType:UITestEventType * 
        eventArgs:Object * 
        elementForThumbnailImage:ElementForThumbnailCapture -> unit
function NotifyMultiSource(
    sources : IUITechnologyElement[], 
    target : IUITechnologyElement, 
    eventType : UITestEventType, 
    eventArgs : Object, 
    elementForThumbnailImage : ElementForThumbnailCapture
)

Parameters

  • eventArgs
    Type: 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.

Remarks

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.

.NET Framework Security

See Also

Reference

IUITestEventNotify Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace