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:
void Insert(
	Type^ serviceType,
	int index,
	Object^ service
)

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: