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.
- name
Type: System.String
The route name.
- value
Type: System.Web.Http.Routing.IHttpRoute
The IHttpRoute to insert. The value cannot be null.