Share via


CommandSet.MenuService Property

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

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace