DocumentPageView.GetService(Type) Metoda

Definicja

Pobiera obiekt usługi określonego typu.

protected:
 System::Object ^ GetService(Type ^ serviceType);
protected object GetService (Type serviceType);
member this.GetService : Type -> obj
Protected Function GetService (serviceType As Type) As Object

Parametry

serviceType
Type

Typ obiektu usługi do pobrania.

Zwraca

Object

Obiekt usługi typu serviceTypelub null jeśli nie ma obiektu usługi typu serviceType.

Uwagi

GetService Metoda zwraca wszystkie usługi, które DocumentPaginator udostępniają, jeśli DocumentPaginator element implementuje IServiceProviderelement .

Dotyczy