HttpContextBase::GetService Method (Type^)

 

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: