ServiceContainer.GetService(Type) Methode

Definition

Ruft den angeforderten Dienst ab.

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

Parameter

serviceType
Type

Der Typ des abzurufenden Diensts.

Gibt zurück

Eine Instanz des Dienstes, wenn eine solche gefunden werden konnte, andernfalls null.

Implementiert

Gilt für:

Weitere Informationen