Share via


HttpRouteCollection.GetEnumerator Method

Returns an enumerator that iterates through the collection.

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

Syntax

'Declaration
Public Overridable Function GetEnumerator As IEnumerator(Of IHttpRoute)
'Usage
Dim instance As HttpRouteCollection
Dim returnValue As IEnumerator(Of IHttpRoute)

returnValue = instance.GetEnumerator()
public virtual IEnumerator<IHttpRoute> GetEnumerator()
public:
virtual IEnumerator<IHttpRoute^>^ GetEnumerator()
abstract GetEnumerator : unit -> IEnumerator<IHttpRoute> 
override GetEnumerator : unit -> IEnumerator<IHttpRoute> 
public function GetEnumerator() : IEnumerator<IHttpRoute>

Return Value

Type: System.Collections.Generic.IEnumerator<IHttpRoute>
An IEnumerator<T> that can be used to iterate through the collection.

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace