HttpContextWrapper.GetService Method (Type)

 

Returns an object for the current service type.

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

override GetService : 
        serviceType:Type -> Object

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.

.NET Framework
Available since 3.5
Return to top
Show: