Share via


ServicesContainer.Add Method

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

'Declaration
Public Sub Add ( _
    serviceType As Type, _
    service As Object _
)
'Usage
Dim instance As ServicesContainer 
Dim serviceType As Type 
Dim service As Object

instance.Add(serviceType, service)
public void Add(
    Type serviceType,
    Object service
)
public:
void Add(
    Type^ serviceType, 
    Object^ service
)
member Add : 
        serviceType:Type * 
        service:Object -> unit
public function Add(
    serviceType : Type, 
    service : Object
)

Parameters

See Also

Reference

ServicesContainer Class

System.Web.Http.Controllers Namespace