ServiceContainer.GetService(Type) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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ó.