ISupportRequiredService.GetRequiredService(Type) Méthode
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.
Obtient le service de type serviceType de l'IServiceProvider qui implémente cette interface.
public:
System::Object ^ GetRequiredService(Type ^ serviceType);
public object GetRequiredService (Type serviceType);
abstract member GetRequiredService : Type -> obj
Public Function GetRequiredService (serviceType As Type) As Object
Paramètres
- serviceType
- Type
Type d’objet de service à obtenir.
Retours
Objet de service de type serviceType. Lève une exception si le IServiceProvider ne peut pas créer l’objet.
Exceptions
provider a déjà été supprimé.