HttpRouteCollection Class

 

A collection of IHttpRoute instances.

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

System::Object
  System.Web.Http::HttpRouteCollection

[DefaultMemberAttribute("Item")]
public ref class HttpRouteCollection : ICollection<IHttpRoute^>, 
	IEnumerable<IHttpRoute^>, IEnumerable, IDisposable

NameDescription
System_CAPS_pubmethodHttpRouteCollection()

Initializes a new instance of the HttpRouteCollection class.

System_CAPS_pubmethodHttpRouteCollection(String^)

Initializes a new instance of the HttpRouteCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in the collection.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the collection is read-only.

System_CAPS_pubpropertyItem[Int32]

Gets or sets the element at the specified index.

System_CAPS_pubpropertyItem[String^]

Gets or sets the element with the specified route name.

System_CAPS_pubpropertyVirtualPathRoot

Gets the virtual path root.

NameDescription
System_CAPS_pubmethodAdd(String^, IHttpRoute^)

Adds an IHttpRoute instance to the collection.

System_CAPS_pubmethodClear()

Removes all items from the collection.

System_CAPS_pubmethodContains(IHttpRoute^)

Determines whether the collection contains a specific IHttpRoute.

System_CAPS_pubmethodContainsKey(String^)

Determines whether the collection contains an element with the specified key.

System_CAPS_pubmethodCopyTo(array<IHttpRoute^>^, Int32)

Copies the route names and IHttpRoute instances of the collection to an array, starting at a particular array index.

System_CAPS_pubmethodCopyTo(array<KeyValuePair<String^, IHttpRoute^>>^, Int32)

Copies the IHttpRoute instances of the collection to an array, starting at a particular array index.

System_CAPS_pubmethodCreateRoute(String^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^)

Creates an IHttpRoute instance.

System_CAPS_pubmethodCreateRoute(String^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, HttpMessageHandler^)

Creates an IHttpRoute instance.

System_CAPS_pubmethodCreateRoute(String^, Object^, Object^)

Creates an IHttpRoute instance.

System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetRouteData(HttpRequestMessage^)

Gets the route data for a specified HTTP request.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetVirtualPath(HttpRequestMessage^, String^, IDictionary<String^, Object^>^)

Gets a virtual path.

System_CAPS_pubmethodInsert(Int32, String^, IHttpRoute^)

Inserts an IHttpRoute instance into the collection.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnGetEnumerator()

Called internally to get the enumerator for the collection.

System_CAPS_pubmethodRemove(String^)

Removes an IHttpRoute instance from the collection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(String^, IHttpRoute^)

Gets the IHttpRoute with the specified route name.

System_CAPS_protmethodValidateConstraint(String^, String^, Object^)

Validates that a constraint is valid for an IHttpRoute created by a call to the CreateRoute method.

NameDescription
System_CAPS_pubmethodIgnoreRoute(String^, String^)

Overloaded. Ignores the specified route.(Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodIgnoreRoute(String^, String^, Object^)

Overloaded. Ignores the specified route.(Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodMapHttpBatchRoute(String^, String^, HttpBatchHandler^)

Maps the specified route for handling HTTP batch requests. (Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodMapHttpRoute(String^, String^)

Overloaded. Maps the specified route template.(Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodMapHttpRoute(String^, String^, Object^)

Overloaded. Maps the specified route template and sets default route values.(Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodMapHttpRoute(String^, String^, Object^, Object^)

Overloaded. Maps the specified route template and sets default route values and constraints.(Defined by HttpRouteCollectionExtensions.)

System_CAPS_pubmethodMapHttpRoute(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.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: