Share via


ServiceProvider.GetKeyedService(Type, Object) Yöntem

Tanım

Belirtilen anahtarla belirtilen türdeki hizmet nesnesini alır.

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

Parametreler

serviceType
Type

Alınacak hizmetin türü.

serviceKey
Object

Alınacak hizmetin anahtarı.

Döndürülenler

Anahtarlı hizmet.

Uygulamalar

Şunlara uygulanır