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
menuID
Type: System.Int32The shortcut menu ID.
groupGuid
Type: System.GuidThe GUID of the menu group.
points
Type: Microsoft.VisualStudio.Shell.Interop.POINTSThe location at which to show the menu.
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
- 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.