ServiceProvider.GetKeyedService(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 de service du type spécifié avec la clé spécifiée.
public:
virtual System::Object ^ GetKeyedService(Type ^ serviceType, System::Object ^ serviceKey);
public object? GetKeyedService(Type serviceType, object? serviceKey);
abstract member GetKeyedService : Type * obj -> obj
override this.GetKeyedService : Type * obj -> obj
Public Function GetKeyedService (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é.