FlavoredProject.IOleCommandTarget.Exec Method

Definition

Executes a specified command or displays help for a command.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid % pguidCmdGroup, System::UInt32 nCmdID, System::UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::Exec;

Parameters

pguidCmdGroup
Guid

The ID of the command group to which the command belongs.

nCmdID
UInt32

The ID of the command.

nCmdexecopt
UInt32

A member of the OLECMDEXECOPT enumeration, describing the type of action to take.

pvaIn
IntPtr

A pointer to a VARIANTARG structure containing input arguments. May be null.

pvaOut
IntPtr

A pointer to a VARIANTARG structure containing command output. May be null.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

This method calls Exec on the inner project. For information on the COM interface, see IOleCommandTarget::Exec.

Applies to