HttpRouteCollection.Add Method (String, IHttpRoute)
Adds an IHttpRoute instance to the collection.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
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 Overridable Sub Add (
name As String,
route As IHttpRoute
)
Parameters
name
Type: System.StringThe name of the route.
route
Type: System.Web.Http.Routing.IHttpRouteThe IHttpRoute instance to add to the collection.
See Also
HttpRouteCollection Class
System.Web.Http Namespace
Return to top