ServicesContainer.Insert Method (Type, Int32, Object)

 

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 Sub Insert (
	serviceType As Type,
	index As Integer,
	service As 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.

Return to top
Show: