UITechnologyManager.AddGlobalEventHandler Method

Adds a global event sink to this technology manager.

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

Syntax

'Declaration
Public MustOverride Function AddGlobalEventHandler ( _
    eventType As UITestEventType, _
    eventSink As IUITestEventNotify _
) As Boolean
public abstract bool AddGlobalEventHandler(
    UITestEventType eventType,
    IUITestEventNotify eventSink
)
public:
virtual bool AddGlobalEventHandler(
    UITestEventType eventType, 
    IUITestEventNotify^ eventSink
) abstract
abstract AddGlobalEventHandler : 
        eventType:UITestEventType * 
        eventSink:IUITestEventNotify -> bool
public abstract function AddGlobalEventHandler(
    eventType : UITestEventType, 
    eventSink : IUITestEventNotify
) : boolean

Parameters

Return Value

Type: Boolean
true if the event type is supported and is successfully added; otherwise, false.

.NET Framework Security

See Also

Reference

UITechnologyManager Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

UITestEventType

IUITestEventNotify