ServicesContainer.Replace Method (Type, Object)


Replaces all existing services for the given service type with the given service instance. This works for both singular and plural services.

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


public void Replace(
    Type serviceType,
    object service
void Replace(
    Type^ serviceType,
    Object^ service
member Replace : 
        serviceType:Type *
        service:Object -> unit
Public Sub Replace (
    serviceType As Type,
    service As Object


See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top