public interface IInvokeProvider
Implemented on a Microsoft UI Automation provider that must support the Invoke control pattern.
Controls implement IInvokeProvider if the same behavior is not exposed through another control pattern provider. For example, if the Invoke method of a control performs the same action as the IExpandCollapseProvider::Expand or Collapse method, the control should not also implement IInvokeProvider.
Modifier and Type | Method and Description |
---|---|
void |
Invoke()
Sends a request to activate a control and initiate its single, unambiguous action.
|
void Invoke()
IInvokeProvider::Invoke is an asynchronous call and must return immediately without blocking.
Note This is particularly critical for controls that, directly or indirectly, launch a modal dialog when invoked. Any Microsoft UI Automation client that instigated the event will remain blocked until the modal dialog is closed.
IInvokeProvider::Invoke raises the Invoked event after the control has completed its associated action, if possible.
The event should be raised before servicing the Invoke request in the following scenarios: