ServicesContainer.Clear Method (Type)

 

Removes all the service instances of the given service type.

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

Syntax

public virtual void Clear(
    Type serviceType
)
public:
virtual void Clear(
    Type^ serviceType
)
abstract Clear : 
        serviceType:Type -> unit
override Clear : 
        serviceType:Type -> unit
Public Overridable Sub Clear (
    serviceType As Type
)

Parameters

  • serviceType
    Type: System.Type

    The service type to clear from the services list.

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top