Windows Dev Center

IInvokeProvider.Invoke Method

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

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)

void Invoke()

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.)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft