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