SVsServiceProvider Interface

Represents a Visual Studio service provider

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

Syntax

'Declaration
Public Interface SVsServiceProvider _
    Inherits IServiceProvider
public interface SVsServiceProvider : IServiceProvider
public interface class SVsServiceProvider : IServiceProvider
type SVsServiceProvider =  
    interface
        interface IServiceProvider
    end
public interface SVsServiceProvider extends IServiceProvider

The SVsServiceProvider type exposes the following members.

Methods

  Name Description
Public method GetService Gets the service object of the specified type. (Inherited from IServiceProvider.)

Top

Remarks

This type is intended for the dynamic discovery of other Visual Studio services from Managed Extensibility Framework (MEF) components.

Examples

For an example of how to use this service provider, see [Walkthrough:AccessingtheDTEObjectfromanEditorExtension]Walkthrough: Accessing the DTE Object from an Editor Extension.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace