HttpContext.IServiceProvider.GetService Method (Type)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Returns an object for the current service type.
Assembly: System.Web (in System.Web.dll)
Private Function GetService ( service As Type ) As Object Implements IServiceProvider.GetService
Parameters
- service
-
Type:
System.Type
A type of HttpContext service to set the service provider to.
Implements
IServiceProvider.GetService(Type)This method is useful to gain access to the underlying HttpWorkerRequest object.
.NET Framework
Available since 1.1
Available since 1.1
Show: