Share via


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;
int IOleCommandTarget.Exec (ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
Function Exec (ByRef pguidCmdGroup As Guid, nCmdID As UInteger, nCmdexecopt As UInteger, pvaIn As IntPtr, pvaOut As IntPtr) As Integer Implements 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

nativeint

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

pvaOut
IntPtr

nativeint

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