Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpContextWrapper.GetService Method

Returns an object for the current service type.

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

public override Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service to get.

Return Value

Type: System.Object
The current service type, or null if no service is found.

Implements

IServiceProvider.GetService(Type)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft