DefaultServices.ClearSingle Method

Removes a single-instance service from the default services.

Namespace:  System.Web.Http.Services
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

  • serviceType
    Type: System.Type

    The type of the service.

Remarks

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

See Also

Reference

DefaultServices Class

System.Web.Http.Services Namespace