Partager via


OleMenuCommandService.ServiceProvider Property

Note: This API is now obsolete.

Gets the service provider.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is obsolete and will be removed before the end of M3.2.  Use the proected GetService method instead.")> _
Protected ReadOnly Property ServiceProvider As IServiceProvider
[ObsoleteAttribute("This method is obsolete and will be removed before the end of M3.2.  Use the proected GetService method instead.")]
protected IServiceProvider ServiceProvider { get; }
[ObsoleteAttribute(L"This method is obsolete and will be removed before the end of M3.2.  Use the proected GetService method instead.")]
protected:
property IServiceProvider^ ServiceProvider {
    IServiceProvider^ get ();
}
[<ObsoleteAttribute("This method is obsolete and will be removed before the end of M3.2.  Use the proected GetService method instead.")>]
member ServiceProvider : IServiceProvider with get
function get ServiceProvider () : IServiceProvider

Property Value

Type: IServiceProvider
The service provider.

.NET Framework Security

See Also

Reference

OleMenuCommandService Class

Microsoft.VisualStudio.Shell Namespace