Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServicesContainer.ReplaceMultiple Method

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.

Call this method to replace a list of services of type serviceType with a single service of that type.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.