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

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)
member Replace : 
        serviceType:Type * 
        service:Object -> unit

Parameters

serviceType
Type: System.Type

The service type.

service
Type: System.Object

The service instance.

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