Partager via


ControllerServices.ClearSingle Method

Removes a single-instance service from the default services.

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

Syntax

'Declaration
Protected Overrides Sub ClearSingle ( _
    serviceType As Type _
)
'Usage
Dim serviceType As Type 

Me.ClearSingle(serviceType)
protected override void ClearSingle(
    Type serviceType
)
protected:
virtual void ClearSingle(
    Type^ serviceType
) override
abstract ClearSingle : 
        serviceType:Type -> unit  
override ClearSingle : 
        serviceType:Type -> unit
protected override function ClearSingle(
    serviceType : Type
)

Parameters

Remarks

To check whether a service is single-instance, call IsSingleService.

See Also

Reference

ControllerServices Class

System.Web.Http.Controllers Namespace