ServiceContainer.GetService(Type) Yöntem

Tanım

İstenen hizmeti alır.

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

Parametreler

serviceType
Type

Alınacak hizmet türü.

Döndürülenler

Bulunabildiyse veya null bulunamazsa hizmetin bir örneği.

Uygulamalar

Şunlara uygulanır

Ayrıca bkz.