FlavoredProject::IVsUIHierarchy::ExecCommand Method (UInt32, Guid, UInt32, UInt32, IntPtr, IntPtr)
Executes a command on a specific item within a UI hierarchy window, or on the hierarchy itself.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
private: virtual int ExecCommand( unsigned int itemid, Guid% pguidCmdGroup, unsigned int nCmdID, unsigned int nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) sealed = IVsUIHierarchy::ExecCommand
Parameters
- itemid
-
Type:
System::UInt32
The identifier of the item affected by the command. For single selection, this value is the actual item ID. For multiple selections, set itemid equal to F:Microsoft.VisualStudio.VSConstants.VSITEMID_SELECTION.
- pguidCmdGroup
-
Type:
System::Guid
Unique identifier of the command group. All the commands in nCmdID must belong to the group specified by pguidCmdGroup.
- nCmdID
-
Type:
System::UInt32
The command to be executed. This command must belong to the group specified with pguidCmdGroup.
- nCmdexecopt
-
Type:
System::UInt32
A member of the OLECMDEXECOPT enumeration, describing the type of action to perform.
- pvaIn
-
Type:
System::IntPtr
A pointer to a VARIANTARG structure containing input arguments. Can be null.
- pvaOut
-
Type:
System::IntPtr
A pointer to a VARIANTARG structure to receive command output. Can be null.
This method calls the ExecCommand method, which calls the ExecCommand method on the inner project.