Nyelv

ServiceContainer.GetService(Type) Metódus

Definíció

Lekéri a kért szolgáltatást.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public virtual object? GetService(Type serviceType);
public virtual object GetService(Type serviceType);
public object GetService(Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Overridable Function GetService (serviceType As Type) As Object
Public Function GetService (serviceType As Type) As Object

Paraméterek

serviceType
Type

A lekérendő szolgáltatás típusa.

Válaszok

A szolgáltatás egy példánya, ha megtalálható, vagy null ha nem található.

Megvalósítás

A következőre érvényes:

Lásd még