Share via


OleMenuCommand.Invoke Method

Definition

Overloads

Invoke(Object)

Executes the command.

Invoke(Object, IntPtr)

Executes the command.

Invoke(Object, IntPtr, OLECMDEXECOPT)

Executes the command with execution options.

Invoke(Object)

Executes the command.

public:
 override void Invoke(System::Object ^ inArg);
public:
 override void Invoke(Platform::Object ^ inArg);
 override void Invoke(winrt::Windows::Foundation::IInspectable const & inArg);
public override void Invoke (object inArg);
override this.Invoke : obj -> unit
Public Overrides Sub Invoke (inArg As Object)

Parameters

inArg
Object

The parameter passed to the command.

Applies to

Invoke(Object, IntPtr)

Executes the command.

public:
 virtual void Invoke(System::Object ^ inArg, IntPtr outArg);
public virtual void Invoke (object inArg, IntPtr outArg);
override this.Invoke : obj * nativeint -> unit
Public Overridable Sub Invoke (inArg As Object, outArg As IntPtr)

Parameters

inArg
Object

The parameter passed to the command.

outArg
IntPtr

nativeint

The parameter returned by the command.

Implements

Applies to

Invoke(Object, IntPtr, OLECMDEXECOPT)

Executes the command with execution options.

public:
 virtual void Invoke(System::Object ^ inArg, IntPtr outArg, Microsoft::VisualStudio::OLE::Interop::OLECMDEXECOPT options);
public virtual void Invoke (object inArg, IntPtr outArg, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT options);
override this.Invoke : obj * nativeint * Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT -> unit
Public Overridable Sub Invoke (inArg As Object, outArg As IntPtr, options As OLECMDEXECOPT)

Parameters

inArg
Object

The parameter passed to the command.

outArg
IntPtr

nativeint

The parameter returned by the command.

options
OLECMDEXECOPT

The execution options for the command.

Implements

Applies to