UITechnologyManagerProxy.AddGlobalEventHandler Method
Adds a global sink to notify actions raised by the plugin
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Overrides Function AddGlobalEventHandler ( _
eventType As UITestEventType, _
eventSink As IUITestEventNotify _
) As Boolean
public override bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify eventSink
)
public:
virtual bool AddGlobalEventHandler(
UITestEventType eventType,
IUITestEventNotify^ eventSink
) override
abstract AddGlobalEventHandler :
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
override AddGlobalEventHandler :
eventType:UITestEventType *
eventSink:IUITestEventNotify -> bool
public override function AddGlobalEventHandler(
eventType : UITestEventType,
eventSink : IUITestEventNotify
) : boolean
Parameters
eventType
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestEventTypeThe type of event to listen to.
eventSink
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITestEventNotifySink used for notification
Return Value
Type: Boolean
True if it is successful, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.