ServiceProvider Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
| ServiceProvider(IServiceProvider) |
Crée un objet ServiceProvider et utilise l'interface donnée pour résoudre des services. |
Méthodes
| Dispose() |
Libère toutes les ressources utilisées par l’objet ServiceProvider . |
| GetService(Guid) |
Obtient l'objet du service. |
| GetService(Type) |
Obtient l'objet du service. |
Implémentations d’interfaces explicites
| IObjectWithSite.GetSite(Guid, IntPtr) |
Extrait l'objet de site actuel utilisé pour résoudre des services. |
| IObjectWithSite.SetSite(Object) |
Définit l'objet de site pour résoudre des services. |