ServicesContainer.ReplaceRange Method (Type, IEnumerable<Object>)
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
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 Sub ReplaceRange (
serviceType As Type,
services As IEnumerable(Of Object)
)
Parameters
serviceType
Type: System.TypeThe service type.
services
Type: System.Collections.Generic.IEnumerable<Object>The service instances.
See Also
ServicesContainer Class
System.Web.Http.Controllers Namespace
Return to top