HttpContext.IServiceProvider.GetService(Type) Yöntem
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
- service
- Type
Hizmet sağlayıcısının HttpContext ayarlanacağı hizmet türü.
A HttpContext; aksi takdirde, null
hizmet bulunamazsa.
Bu yöntem, temel alınan HttpWorkerRequest nesneye erişim kazanmak için yararlıdır.
Ürün | Sürümler |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: