Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpContext::IServiceProvider::GetService Method (Type^)

 

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.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

private:
virtual Object^ GetService(
	Type^ service
) sealed = IServiceProvider::GetService

Parameters

service
Type: System::Type^

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

Return Value

Type: System::Object^

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

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft