ServiceProvider Classe

Définition

Important

Cette API n’est pas conforme CLS.

Fournit un fournisseur de services unifié.

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
Héritage
ServiceProvider
Attributs
Implémente

Constructeurs

Nom Description
ServiceProvider(IServiceProvider)

Crée un nouvel ServiceProvider objet et utilise l’interface donnée pour résoudre les services.

Méthodes

Nom Description
Dispose()

Ça libère toutes les ressources utilisées par l’objet ServiceProvider .

GetService(Guid)

Obtient l’objet de service.

GetService(Type)

Obtient l’objet de service.

Implémentations d’interfaces explicites

Nom Description
IObjectWithSite.GetSite(Guid, IntPtr)

Récupère l’objet site actuel utilisé pour résoudre les services.

IObjectWithSite.SetSite(Object)

Définit l’objet site pour résoudre les services.

S’applique à