IInvokeProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exposes a method to support Microsoft UI Automation access to controls that initiate or perform a single, unambiguous action and do not maintain state when activated. Implement this interface in order to support the capabilities that an automation client requests with a AutomationPeer.GetPattern call and PatternInterface.Invoke.
public interface class IInvokeProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(38277381, 13176, 21581, 180, 225, 161, 179, 104, 175, 188, 2)]
struct IInvokeProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(38277381, 13176, 21581, 180, 225, 161, 179, 104, 175, 188, 2)]
public interface IInvokeProvider
Public Interface IInvokeProvider
- Derived
- Attributes
Remarks
An example of a control that meets the guidelines of IInvokeProvider is Button. Controls that do maintain state, such as check boxes and radio buttons, must instead implement IToggleProvider and ISelectionProvider respectively. Controls implement IInvokeProvider if the same behavior is not exposed through another control pattern provider. For more info on what this pattern is for, see Invoke Control Pattern.
IInvokeProvider is implemented by the existing Windows Runtime automation peers for Button (ButtonAutomationPeer), RepeatButton (RepeatButtonAutomationPeer) and HyperlinkButton (HyperlinkButtonAutomationPeer).
If you implement IInvokeProvider for a list/list items scenario and a control that uses ListViewBase, implement IInvokeProvider for the list and not for individual items.
The IInvokeProvider pattern doesn't have a pattern property identifier class, the only API to implement is Invoke, a method.
Methods
Invoke() |
Sends a request to initiate or perform the single, unambiguous action of the provider control. For example, the invoke action for a Button is click. |