Partager via


VsServiceProviderWrapper Class

Definition

Caution

Use [Import] SVsServiceProvider instead.

Wraps a service provider instance. The class is intended to be used for exposing a SVsService provider value to a VS MEF composition container.

public ref class VsServiceProviderWrapper sealed : IServiceProvider, Microsoft::VisualStudio::Shell::SVsServiceProvider
public ref class VsServiceProviderWrapper sealed : Microsoft::VisualStudio::Shell::SVsServiceProvider
class VsServiceProviderWrapper sealed : Microsoft::VisualStudio::Shell::SVsServiceProvider
public sealed class VsServiceProviderWrapper : IServiceProvider, Microsoft.VisualStudio.Shell.SVsServiceProvider
[System.Obsolete("Use [Import] SVsServiceProvider instead.")]
public sealed class VsServiceProviderWrapper : IServiceProvider, Microsoft.VisualStudio.Shell.SVsServiceProvider
type VsServiceProviderWrapper = class
    interface SVsServiceProvider
    interface IServiceProvider
[<System.Obsolete("Use [Import] SVsServiceProvider instead.")>]
type VsServiceProviderWrapper = class
    interface SVsServiceProvider
    interface IServiceProvider
Public NotInheritable Class VsServiceProviderWrapper
Implements IServiceProvider, SVsServiceProvider
Inheritance
VsServiceProviderWrapper
Attributes
Implements

Remarks

For more information about the Managed Extensibility Framework, see Managed Extensibility Framework (MEF).

Constructors

VsServiceProviderWrapper(IServiceProvider)

Constructs an instance of the class.

Methods

GetService(Type)

Gets the service object of the specified type. Delegates all the work of retirieving the requested service to the wrapped service provider.

Applies to