IKeyedServiceProvider.GetRequiredKeyedService(Type, Object) Méthode

Définition

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éé.

S’applique à