HierarchyNode.ShowContextMenu Method

Shows the specified shortcut menu at the specified location.

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

Syntax

'宣言
Protected Overridable Function ShowContextMenu ( _
    menuID As Integer, _
    groupGuid As Guid, _
    points As POINTS _
) As Integer
'使用
Dim menuID As Integer
Dim groupGuid As Guid
Dim points As POINTS
Dim returnValue As Integer

returnValue = Me.ShowContextMenu(menuID, _
    groupGuid, points)
protected virtual int ShowContextMenu(
    int menuID,
    Guid groupGuid,
    POINTS points
)
protected:
virtual int ShowContextMenu(
    int menuID, 
    Guid groupGuid, 
    POINTS points
)
protected function ShowContextMenu(
    menuID : int, 
    groupGuid : Guid, 
    points : POINTS
) : int

Parameters

  • groupGuid
    Type: System.Guid

    The GUID of the menu group.

Return Value

Type: System.Int32

S_OK; otherwise, the error code returned by [M:Microsoft.VisualStudio.Shell.Interop.IVsUIShell.ShowContextMenu(uint dwCompRole, ref System.Guid rclsidActive, int nMenuId, T:Microsoft.VisualStudio.Shell.Interop.POINTS[] pos, T:Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget pCmdTrgtActive)].

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

Microsoft.VisualStudio.Package Namespace