Export (0) Print
Expand All

ServicesContainer.Replace Method

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 void Replace(
	Type serviceType,
	Object service
)

Parameters

serviceType
Type: System.Type

The service type.

service
Type: System.Object

The service instance.

Show:
© 2014 Microsoft