ServicesContainer.Add Method (Type, Object)
Adds a service to the end of services list for the given service type.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public void Add(
Type serviceType,
object service
)
public:
void Add(
Type^ serviceType,
Object^ service
)
member Add :
serviceType:Type *
service:Object -> unit
Public Sub Add (
serviceType As Type,
service As Object
)
Parameters
serviceType
Type: System.TypeThe service type.
service
Type: System.ObjectThe service instance.
See Also
ServicesContainer Class
System.Web.Http.Controllers Namespace
Return to top