Partager via


HttpRouteCollection.Add Method

Adds an IHttpRoute instance to the collection.

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

Syntax

'Declaration
Public Overridable Sub Add ( _
    name As String, _
    route As IHttpRoute _
)
'Usage
Dim instance As HttpRouteCollection
Dim name As String
Dim route As IHttpRoute

instance.Add(name, route)
public virtual void Add(
    string name,
    IHttpRoute route
)
public:
virtual void Add(
    String^ name, 
    IHttpRoute^ route
)
abstract Add : 
        name:string * 
        route:IHttpRoute -> unit 
override Add : 
        name:string * 
        route:IHttpRoute -> unit 
public function Add(
    name : String, 
    route : IHttpRoute
)

Parameters

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace