Partager via


HttpRouteCollection.ICollection<IHttpRoute>.Add Method

Adds an item to the collection.

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

Syntax

'Declaration
Private Sub Add ( _
    route As IHttpRoute _
) Implements ICollection(Of IHttpRoute).Add
'Usage
Dim instance As HttpRouteCollection
Dim route As IHttpRoute

CType(instance, ICollection(Of IHttpRoute)).Add(route)
void ICollection<IHttpRoute>.Add(
    IHttpRoute route
)
private:
virtual void Add(
    IHttpRoute^ route
) sealed = ICollection<IHttpRoute^>::Add
private abstract Add : 
        route:IHttpRoute -> unit 
private override Add : 
        route:IHttpRoute -> unit 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Implements

ICollection<T>.Add(T)

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace