ServiceProvider.GetRequiredKeyedService(Type, Object) 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 l'objet service du type spécifié.
public:
virtual System::Object ^ GetRequiredKeyedService(Type ^ serviceType, System::Object ^ serviceKey);
public object GetRequiredKeyedService (Type serviceType, object? serviceKey);
abstract member GetRequiredKeyedService : Type * obj -> obj
override this.GetRequiredKeyedService : Type * obj -> obj
Public Function GetRequiredKeyedService (serviceType As Type, serviceKey As Object) As Object
Paramètres
- serviceType
- Type
Type de service à obtenir.
- serviceKey
- Object
Clé du service à obtenir.
Retours
Service à clé.
Implémente
Exceptions
Le service est introuvable.