Partager via


HttpRouteCollection.Insert Method

Inserts an IHttpRoute instance into the collection.

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

Syntax

'Declaration
Public Overridable Sub Insert ( _
    index As Integer, _
    name As String, _
    value As IHttpRoute _
)
'Usage
Dim instance As HttpRouteCollection
Dim index As Integer
Dim name As String
Dim value As IHttpRoute

instance.Insert(index, name, value)
public virtual void Insert(
    int index,
    string name,
    IHttpRoute value
)
public:
virtual void Insert(
    int index, 
    String^ name, 
    IHttpRoute^ value
)
abstract Insert : 
        index:int * 
        name:string * 
        value:IHttpRoute -> unit 
override Insert : 
        index:int * 
        name:string * 
        value:IHttpRoute -> unit 
public function Insert(
    index : int, 
    name : String, 
    value : IHttpRoute
)

Parameters

  • index
    Type: System.Int32
    The zero-based index at which value should be inserted.

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace