ServicesContainer.InsertRange Method (Type, Int32, IEnumerable<Object>)

 

Inserts the elements of the collection into the service list at the specified index.

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

Syntax

public void InsertRange(
    Type serviceType,
    int index,
    IEnumerable<object> services
)
public:
void InsertRange(
    Type^ serviceType,
    int index,
    IEnumerable<Object^>^ services
)
member InsertRange : 
        serviceType:Type *
        index:int *
        services:IEnumerable<Object> -> unit
Public Sub InsertRange (
    serviceType As Type,
    index As Integer,
    services As IEnumerable(Of Object)
)

Parameters

  • index
    Type: System.Int32

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

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top