IWorkspaceCommandHandler.Exec 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 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
返回
执行 HResult,OLECMDERR_E_NOTSUPPORTED 如果处理程序不支持它 (这意味着控制器将尝试下一个处理程序) 。