UrlRoutingModule Class

Definition

Matches a URL request to a defined route.

public ref class UrlRoutingModule : System::Web::IHttpModule
public class UrlRoutingModule : System.Web.IHttpModule
type UrlRoutingModule = class
    interface IHttpModule
Public Class UrlRoutingModule
Implements IHttpModule
Inheritance
UrlRoutingModule
Implements

Remarks

The UrlRoutingModule class matches an HTTP request to a route in an ASP.NET application. The module iterates through all the routes in the RouteCollection property and searches for a route that has a URL pattern that matches the format of the HTTP request. When the module finds a matching route, it retrieves the IRouteHandler object for that route. From the route handler, the module gets an IHttpHandler object and uses that as the HTTP handler for the current request.

Constructors

UrlRoutingModule()

Initializes a new instance of the UrlRoutingModule class.

Properties

RouteCollection

Gets or sets the collection of defined routes for the ASP.NET application.

Methods

Dispose()

Disposes of the resources (other than memory) that are used by the module.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Init(HttpApplication)

Initializes a module and prepares it to handle requests.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PostMapRequestHandler(HttpContextBase)
Obsolete.

Assigns the HTTP handler for the current request to the context.

PostResolveRequestCache(HttpContextBase)

Matches the HTTP request to a route, retrieves the handler for that route, and sets the handler as the HTTP handler for the current request.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IHttpModule.Dispose()

For a description of this member, see Dispose().

IHttpModule.Init(HttpApplication)

For a description of this member, see IHttpModule.Init(HttpApplication).

Applies to

See also