OleMenuCommandService.ServiceProvider Property
Note: This API is now obsolete.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.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
Get
'用途
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 ();
}
[<ObsoleteAttribute("This method is obsolete and will be removed before the end of M3.2. Use the proected GetService method instead.")>]
member ServiceProvider : IServiceProvider
function get ServiceProvider () : IServiceProvider
Property Value
Type: System.IServiceProvider
.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.