ReplaceMultiple Method

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)

protected virtual void ReplaceMultiple(
	Type serviceType,
	object service
)

Parameters

serviceType
Type: System.Type

The type of service.

service
Type: System.Object

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

Return to top
Show:
© 2016 Microsoft