Share via


IWorkspaceCommandHandler.Exec Method

Definition

Tailored helper for IOleCommandTarget.Exec

public:
 int Exec(System::Collections::Generic::List<Microsoft::VisualStudio::Workspace::VSIntegration::UI::WorkspaceVisualNodeBase ^> ^ selection, Guid pguidCmdGroup, System::UInt32 nCmdID, System::UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut);
public int Exec (System.Collections.Generic.List<Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase> selection, Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut);
abstract member Exec : System.Collections.Generic.List<Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase> * Guid * uint32 * uint32 * nativeint * nativeint -> int
Public Function Exec (selection As List(Of WorkspaceVisualNodeBase), pguidCmdGroup As Guid, nCmdID As UInteger, nCmdexecopt As UInteger, pvaIn As IntPtr, pvaOut As IntPtr) As Integer

Parameters

selection
List<WorkspaceVisualNodeBase>

selected nodes

pguidCmdGroup
Guid

command guid

nCmdID
UInt32

command id

nCmdexecopt
UInt32

vs stuff

pvaIn
IntPtr

nativeint

inputs (such us when executed from Command window with arguments)

pvaOut
IntPtr

nativeint

outputs

Returns

execution HResult, OLECMDERR_E_NOTSUPPORTED if handler does not support it (which means controller will try next handler).

Applies to