Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sends a request to activate the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.
Namespace: Microsoft.Windows.Automation.Peers
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Private Sub Invoke Implements IInvokeProvider.Invoke
void IInvokeProvider.Invoke()
private:
virtual void Invoke() sealed = IInvokeProvider::Invoke
private abstract Invoke : unit -> unit
private override Invoke : unit -> unit
JScript does not support explicit interface implementations.
Implements
Exceptions
Exception | Condition |
---|---|
ElementNotEnabledException | The RibbonMenuItem is not enabled. |
ElementNotAvailableException | The RibbonMenuItem is virtualized. |
InvalidOperationException | The RibbonMenuItem is not available. |
Remarks
This member is an explicit interface member implementation. It can be used only when the RibbonMenuItemDataAutomationPeer instance is cast to an IInvokeProvider interface.
.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.