HttpRouteCollection Class
A collection of IHttpRoute instances.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
The HttpRouteCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | HttpRouteCollection() | Initializes a new instance of the HttpRouteCollection class. |
![]() | HttpRouteCollection(String) | Initializes a new instance of the HttpRouteCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of items in the collection. |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. |
![]() | Item[Int32] | Gets or sets the element at the specified index. |
![]() | Item[String] | Gets or sets the element with the specified route name. |
![]() | VirtualPathRoot | Gets the virtual path root. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds an IHttpRoute instance to the collection. |
![]() | Clear | Removes all items from the collection. |
![]() | Contains | Determines whether the collection contains a specific IHttpRoute. |
![]() | ContainsKey | Determines whether the collection contains an element with the specified key. |
![]() | CopyTo(KeyValuePair<String, IHttpRoute>[], Int32) | Copies the IHttpRoute instances of the collection to an array, starting at a particular array index. |
![]() | CopyTo(IHttpRoute[], Int32) | Copies the route names and IHttpRoute instances of the collection to an array, starting at a particular array index. |
![]() | CreateRoute(String, Object, Object) | Creates an IHttpRoute instance. |
![]() | CreateRoute(String, IDictionary<String, Object>, IDictionary<String, Object>, IDictionary<String, Object>) | Creates an IHttpRoute instance. |
![]() | CreateRoute(String, IDictionary<String, Object>, IDictionary<String, Object>, IDictionary<String, Object>, HttpMessageHandler) | Creates an IHttpRoute instance. |
![]() | Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetRouteData | Gets the route data for a specified HTTP request. |
![]() | GetType | (Inherited from Object.) |
![]() | GetVirtualPath | Gets a virtual path. |
![]() | Insert | Inserts an IHttpRoute instance into the collection. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnGetEnumerator | Called internally to get the enumerator for the collection. |
![]() | Remove | Removes an IHttpRoute instance from the collection. |
![]() | ToString | (Inherited from Object.) |
![]() | TryGetValue | Gets the IHttpRoute with the specified route name. |
| Name | Description | |
|---|---|---|
![]() | MapHttpRoute(String, String) | Overloaded. Maps the specified route template. (Defined by HttpRouteCollectionExtensions.) |
![]() | MapHttpRoute(String, String, Object) | Overloaded. Maps the specified route template and sets default route values. (Defined by HttpRouteCollectionExtensions.) |
![]() | MapHttpRoute(String, String, Object, Object) | Overloaded. Maps the specified route template and sets default route values and constraints. (Defined by HttpRouteCollectionExtensions.) |
![]() | MapHttpRoute(String, String, Object, Object, HttpMessageHandler) | Overloaded. Maps the specified route template and sets default route values, constraints, and end-point message handler. (Defined by HttpRouteCollectionExtensions.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection<IHttpRoute>.Add | Adds an item to the collection. |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() ![]() | ICollection<IHttpRoute>.Remove | Removes the first occurrence of a specific object from the collection. |
