IKeyedServiceProvider.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 le service de type serviceType de l’implémentation IServiceProvider de cette interface.
public:
System::Object ^ GetRequiredKeyedService(Type ^ serviceType, System::Object ^ serviceKey);
public object GetRequiredKeyedService(Type serviceType, object? serviceKey);
abstract member GetRequiredKeyedService : Type * obj -> obj
Public Function GetRequiredKeyedService (serviceType As Type, serviceKey As Object) As Object
Paramètres
- serviceType
- Type
Objet qui spécifie le type d’objet de service à obtenir.
- serviceKey
- Object
Le ServiceKey service.
Retours
Objet de service de type serviceType.
Lève une exception si l’objet IServiceProvider ne peut pas être créé.