ContextMenuController.ShowContextMenu Method (IEnumerable<IContextMenuPattern>, Point)
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function ShowContextMenu ( _
items As IEnumerable(Of IContextMenuPattern), _
location As Point _
) As Boolean
public static bool ShowContextMenu(
IEnumerable<IContextMenuPattern> items,
Point location
)
public:
static bool ShowContextMenu(
IEnumerable<IContextMenuPattern^>^ items,
Point location
)
static member ShowContextMenu :
items:IEnumerable<IContextMenuPattern> *
location:Point -> bool
public static function ShowContextMenu(
items : IEnumerable<IContextMenuPattern>,
location : Point
) : boolean
Parameters
- location
Type: System.Windows.Point
Return Value
Type: System.Boolean
.NET Framework Security
- 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.