ModelingWindowPane.MenuService Property
Gets the menu command service.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property MenuService As IMenuCommandService
'Usage
Dim instance As ModelingWindowPane
Dim value As IMenuCommandService
value = instance.MenuService
public virtual IMenuCommandService MenuService { get; }
public:
virtual property IMenuCommandService^ MenuService {
IMenuCommandService^ get ();
}
public function get MenuService () : IMenuCommandService
Property Value
Type: System.ComponentModel.Design.IMenuCommandService
By default, the IMenuCommandService interface for the window pane.
Remarks
Derived classes and hosted controls can use this service to add commands to the window pane. Commands appear only when the window pane has focus. Command placement depends on the .vsct file.
By using this interface, you can link command services together and associate handlers with existing commands.
.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.