FlavoredProject::IOleCommandTarget::Exec Method (Guid, UInt32, UInt32, IntPtr, IntPtr)

 

Executes a specified command or displays help for a command.

Namespace:   Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

private:
virtual int Exec(
	Guid% pguidCmdGroup,
	unsigned int nCmdID,
	unsigned int nCmdexecopt,
	IntPtr pvaIn,
	IntPtr pvaOut
) sealed = IOleCommandTarget::Exec

Parameters

pguidCmdGroup
Type: System::Guid

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

nCmdID
Type: System::UInt32

The ID of the command.

nCmdexecopt
Type: System::UInt32

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

pvaIn
Type: System::IntPtr

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

pvaOut
Type: System::IntPtr

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

Return Value

Type: System::Int32

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

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

Return to top
Show: