IWorkspaceCommandHandler.Exec 方法

定义

为 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

参数

selection
List<WorkspaceVisualNodeBase>

所选节点

pguidCmdGroup
Guid

命令 guid

nCmdID
UInt32

命令 id

nCmdexecopt
UInt32

vs 资料

pvaIn
IntPtr

nativeint

从具有参数的命令窗口执行时,将 (此类输入)

pvaOut
IntPtr

nativeint

outputs

返回

Int32

执行 HResult,OLECMDERR_E_NOTSUPPORTED 如果处理程序不支持它 (这意味着控制器将尝试下一个处理程序) 。

适用于