Share via


ServicesContainer.ReplaceMultiple Method (Type, Object)

 

Replaces all instances of a multi-instance service with a new instance.

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

Syntax

protected virtual void ReplaceMultiple(
    Type serviceType,
    object service
)
protected:
virtual void ReplaceMultiple(
    Type^ serviceType,
    Object^ service
)
abstract ReplaceMultiple : 
        serviceType:Type *
        service:Object -> unit
override ReplaceMultiple : 
        serviceType:Type *
        service:Object -> unit
Protected Overridable Sub ReplaceMultiple (
    serviceType As Type,
    service As Object
)

Parameters

  • service
    Type: System.Object

    The service instance that will replace the current services of this type.

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top