Compartir a través de


OleMenuCommandService Constructor (IServiceProvider)

Creates a new menu command service.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Sub New ( _
    serviceProvider As IServiceProvider _
)
public OleMenuCommandService(
    IServiceProvider serviceProvider
)
public:
OleMenuCommandService(
    IServiceProvider^ serviceProvider
)
new : 
        serviceProvider:IServiceProvider -> OleMenuCommandService
public function OleMenuCommandService(
    serviceProvider : IServiceProvider
)

Parameters

  • serviceProvider
    Type: IServiceProvider

    The service provider that this service uses to obtain other services. If the service is being used with a designer, this should be the service provider for the designer (such as the DesignSurface instance).

.NET Framework Security

See Also

Reference

OleMenuCommandService Class

OleMenuCommandService Overload

Microsoft.VisualStudio.Shell Namespace