Export (0) Print
Expand All

ServicesContainer.Insert Method

Inserts a service into the collection at the specified index.

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

public function Insert(
	serviceType : Type, 
	index : int, 
	service : Object
)

Parameters

serviceType
Type: System.Type

The service type.

index
Type: System.Int32

The zero-based index at which the service should be inserted. If MaxValue is passed, ensures the element is added to the end.

service
Type: System.Object

The service to insert.

Show:
© 2014 Microsoft