HttpContextBase.GetService(Type) Method

Definition

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

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public virtual object GetService (Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Overridable Function GetService (serviceType As Type) As Object

Parameters

serviceType
Type

The type of service object to get.

Returns

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

Implements

Exceptions

Applies to