HttpContextBase.GetService Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, returns an object for the current service type.

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

public virtual object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service object to get.

Return Value

Type: System.Object

The current service type, or null if no service is found.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: