Share via


ServicesContainer.ReplaceSingle Method

Replaces a single-instance service of a specified type.

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

Syntax

'Declaration
Protected MustOverride Sub ReplaceSingle ( _
    serviceType As Type, _
    service As Object _
)
'Usage
Dim serviceType As Type 
Dim service As Object 

Me.ReplaceSingle(serviceType, service)
protected abstract void ReplaceSingle(
    Type serviceType,
    Object service
)
protected:
virtual void ReplaceSingle(
    Type^ serviceType, 
    Object^ service
) abstract
abstract ReplaceSingle : 
        serviceType:Type * 
        service:Object -> unit
protected abstract function ReplaceSingle(
    serviceType : Type, 
    service : Object
)

Parameters

See Also

Reference

ServicesContainer Class

System.Web.Http.Controllers Namespace