ServiceProvider.GetKeyedService(Type, Object) Metoda

Definicja

Pobiera obiekt usługi określonego typu z określonym kluczem.

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

Parametry

serviceType
Type

Typ usługi do pobrania.

serviceKey
Object

Klucz usługi do pobrania.

Zwraca

Usługa kluczy.

Implementuje

Dotyczy