Share via


HttpContext.IServiceProvider.GetService(Type) Yöntem

Tanım

Geçerli hizmet türü için bir nesne döndürür.

 virtual System::Object ^ System.IServiceProvider.GetService(Type ^ service) = IServiceProvider::GetService;
object IServiceProvider.GetService (Type service);
abstract member System.IServiceProvider.GetService : Type -> obj
override this.System.IServiceProvider.GetService : Type -> obj
Function GetService (service As Type) As Object Implements IServiceProvider.GetService

Parametreler

service
Type

Hizmet sağlayıcısının HttpContext ayarlanacağı hizmet türü.

Döndürülenler

A HttpContext; aksi takdirde, null hizmet bulunamazsa.

Uygulamalar

Açıklamalar

Bu yöntem, temel alınan HttpWorkerRequest nesneye erişim kazanmak için yararlıdır.

Şunlara uygulanır