Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Overridable Sub ShowContextMenu ( _
menuId As Integer, _
groupGuid As Guid, _
target As IOleCommandTarget, _
x As Integer, _
y As Integer _
)
'使用
Dim instance As ViewFilter
Dim menuId As Integer
Dim groupGuid As Guid
Dim target As IOleCommandTarget
Dim x As Integer
Dim y As Integer
instance.ShowContextMenu(menuId, groupGuid, _
target, x, y)
public virtual void ShowContextMenu(
int menuId,
Guid groupGuid,
IOleCommandTarget target,
int x,
int y
)
public:
virtual void ShowContextMenu(
int menuId,
Guid groupGuid,
IOleCommandTarget^ target,
int x,
int y
)
public function ShowContextMenu(
menuId : int,
groupGuid : Guid,
target : IOleCommandTarget,
x : int,
y : int
)
Parameters
- menuId
Type: System.Int32
- groupGuid
Type: System.Guid
- target
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
- x
Type: System.Int32
- y
Type: System.Int32
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.