Share via


IInvokeProvider.Invoke Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Sends a request to activate a control and initiate its single, unambiguous action.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Sub Invoke
void Invoke()

Remarks

Invoke is intended as an asynchronous call and must return immediately without blocking. This behavior is particularly critical for controls that, directly or indirectly, launch a modal dialog when invoked. Any UI automation client that instigates the event remains blocked until the modal dialog is closed.

Providers should raise ElementNotEnabledException for cases where an Invoke action is performed but the control is not enabled (whether by a false value of IsEnabled value on a true control, or by equivalent control state for other UI elements or custom elements.)

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.