Executes the given command on the file node.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Overrides Function ExecCommandOnNode ( _
guidCmdGroup As Guid, _
cmd As UInteger, _
nCmdexecopt As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
'使用
Dim guidCmdGroup As Guid
Dim cmd As UInteger
Dim nCmdexecopt As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = Me.ExecCommandOnNode(guidCmdGroup, _
cmd, nCmdexecopt, pvaIn, pvaOut)
protected override int ExecCommandOnNode(
Guid guidCmdGroup,
uint cmd,
uint nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
)
protected:
virtual int ExecCommandOnNode(
Guid guidCmdGroup,
unsigned int cmd,
unsigned int nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
) override
protected override function ExecCommandOnNode(
guidCmdGroup : Guid,
cmd : uint,
nCmdexecopt : uint,
pvaIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
guidCmdGroup
Type: System.GuidThe GUID of the command group.
cmd
Type: System.UInt32The ID of the command.
nCmdexecopt
Type: System.UInt32The exec options of the command.
pvaIn
Type: System.IntPtrPointer to a structure containing the command arguments. Can be null.
pvaOut
Type: System.IntPtrPointer to a structure containing the command output. Can be null.
Return Value
Type: System.Int32
Returns S_OK or an HRESULT if an exception was thrown during execution.
Remarks
This method handles the ViewCode, ViewForm, Open, and OpenWith commands. Override this method to handle different commands.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.