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
'宣言
Public Interface SVsServiceProvider _
Inherits IServiceProvider
public interface SVsServiceProvider : IServiceProvider
The SVsServiceProvider type exposes the following members.
Methods
Name | Description | |
---|---|---|
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: Accessing the DTE Object from an Editor Extension.