Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the command sequence and executes an event when a user clicks a command on the shortcut menu.
Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Protected ReadOnly Property MenuService As IMenuCommandService
'Usage
Dim value As IMenuCommandService 
value = Me.MenuService
protected IMenuCommandService MenuService { get; }
protected:
property IMenuCommandService^ MenuService {
    IMenuCommandService^ get ();
}
protected function get MenuService () : IMenuCommandService
Property Value
Type: System.ComponentModel.Design.IMenuCommandService
The menu service that is assigned to the command.
Remarks
This menu service is available only for the window for which it was created. You can use a menu service with the document window or the tool window.
The sequence of commands is defined in Commands.vsct. This file is available for the Domain-Specific Language Tools Designer, in Solution Explorer, under the DslPackage node.
.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.