Compartilhar via


ServicesContainer.ReplaceRange Method

Replaces all existing services for the given service type with the given service instances.

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

Syntax

'Declaration
Public Sub ReplaceRange ( _
    serviceType As Type, _
    services As IEnumerable(Of Object) _
)
'Usage
Dim instance As ServicesContainer 
Dim serviceType As Type 
Dim services As IEnumerable(Of Object)

instance.ReplaceRange(serviceType, services)
public void ReplaceRange(
    Type serviceType,
    IEnumerable<Object> services
)
public:
void ReplaceRange(
    Type^ serviceType, 
    IEnumerable<Object^>^ services
)
member ReplaceRange : 
        serviceType:Type * 
        services:IEnumerable<Object> -> unit
public function ReplaceRange(
    serviceType : Type, 
    services : IEnumerable<Object>
)

Parameters

See Also

Reference

ServicesContainer Class

System.Web.Http.Controllers Namespace