ServiceProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Provides a unified service provider.
public ref class ServiceProvider sealed : IDisposable, IServiceProvider, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
[System.CLSCompliant(false)]
public sealed class ServiceProvider : IDisposable, IServiceProvider, Microsoft.VisualStudio.OLE.Interop.IObjectWithSite
[<System.CLSCompliant(false)>]
type ServiceProvider = class
interface IServiceProvider
interface IDisposable
interface IObjectWithSite
Public NotInheritable Class ServiceProvider
Implements IDisposable, IObjectWithSite, IServiceProvider
- Inheritance
-
ServiceProvider
- Attributes
- Implements
Constructors
ServiceProvider(IServiceProvider) |
Creates a new ServiceProvider object and uses the given interface to resolve services. |
Methods
Dispose() |
Releases all the resources used by the ServiceProvider object. |
GetService(Guid) |
Gets the service object. |
GetService(Type) |
Gets the service object. |
Explicit Interface Implementations
IObjectWithSite.GetSite(Guid, IntPtr) |
Retrieves the current site object used to resolve services. |
IObjectWithSite.SetSite(Object) |
Sets the site object to resolve services. |