Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ServicesContainer.Replace Method (Type, Object)


Replaces all existing services for the given service type with the given service instance. This works for both singular and plural services.

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

Public Sub Replace (
	serviceType As Type,
	service As Object


Type: System.Type

The service type.

Type: System.Object

The service instance.

Return to top
© 2015 Microsoft