HttpContext.IServiceProvider.GetService(Type) HttpContext.IServiceProvider.GetService(Type) HttpContext.IServiceProvider.GetService(Type) Method

Definition

Returns an object for the current service type.

 virtual System::Object ^ System.IServiceProvider.GetService(Type ^ service) = IServiceProvider::GetService;
object IServiceProvider.GetService (Type service);
Function GetService (service As Type) As Object Implements IServiceProvider.GetService

Parameters

service
Type Type Type

A type of HttpContext service to set the service provider to.

Returns

A HttpContext; otherwise, null if no service is found.

Implements

Remarks

This method is useful to gain access to the underlying HttpWorkerRequest object.

Applies to