OleMenuCommandService.ServiceProvider Property

NOTE: This API is now obsolete.

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

Syntax

'宣言
<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
'使用
Dim value As IServiceProvider

value = Me.ServiceProvider
[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 ();
}
protected function get ServiceProvider () : IServiceProvider

Property Value

Type: System.IServiceProvider

Permissions

See Also

Reference

OleMenuCommandService Class

OleMenuCommandService Members

Microsoft.VisualStudio.Shell Namespace