Sdílet prostřednictvím


IServiceProviderIsKeyedService.IsKeyedService(Type, Object) Metoda

Definice

Určuje, jestli je zadaný typ služby se zadaným klíčem služby dostupný v IServiceProvider.

public:
 bool IsKeyedService(Type ^ serviceType, System::Object ^ serviceKey);
public bool IsKeyedService (Type serviceType, object? serviceKey);
abstract member IsKeyedService : Type * obj -> bool
Public Function IsKeyedService (serviceType As Type, serviceKey As Object) As Boolean

Parametry

serviceType
Type

Objekt, který určuje typ objektu služby k testování.

serviceKey
Object

Služby ServiceKey .

Návraty

true pokud je zadaná služba dostupná, false pokud není dostupná.

Platí pro