HierarchyNode.ExecCommandOnNode Method

Handles execution of a given command on this node.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Protected Overridable 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 virtual 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
)
protected function ExecCommandOnNode(
    guidCmdGroup : Guid, 
    cmd : uint, 
    nCmdexecopt : uint, 
    pvaIn : IntPtr, 
    pvaOut : IntPtr
) : int

Parameters

  • guidCmdGroup
    Type: System.Guid

    The GUID of the command group to which the command belongs.

  • nCmdexecopt
    Type: System.UInt32

    Values taken from the OLECMDEXECOPT enumeration. The values describe how the object should execute the command.

  • pvaIn
    Type: System.IntPtr

    Pointer to a VARIANTARG structure that contains input arguments. Can be a null reference (Nothing in Visual Basic).

  • pvaOut
    Type: System.IntPtr

    Pointer to a VARIANTARG structure that contains command output. Can be a null reference (Nothing in Visual Basic).

Return Value

Type: System.Int32

Returns OLECMDERR_E_NOTSUPPORTED() if the project manager is closed, or if the command is not supported. Otherwise, returns S_OK, or an error code if one of the executed commands returned an error code.

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

Microsoft.VisualStudio.Package Namespace