ServiceProvider Class

Definition

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.

Applies to