UrlRoutingModule UrlRoutingModule UrlRoutingModule 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
UrlRoutingModuleUrlRoutingModuleUrlRoutingModuleUrlRoutingModule
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() UrlRoutingModule() UrlRoutingModule() UrlRoutingModule()

Initializes a new instance of the UrlRoutingModule class.

Properties

RouteCollection RouteCollection RouteCollection RouteCollection

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

Methods

Dispose() Dispose() Dispose() Dispose()

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Init(HttpApplication) Init(HttpApplication) Init(HttpApplication) Init(HttpApplication)

Initializes a module and prepares it to handle requests.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PostMapRequestHandler(HttpContextBase) PostMapRequestHandler(HttpContextBase) PostMapRequestHandler(HttpContextBase) PostMapRequestHandler(HttpContextBase)

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

PostResolveRequestCache(HttpContextBase) PostResolveRequestCache(HttpContextBase) PostResolveRequestCache(HttpContextBase) 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() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IHttpModule.Dispose() IHttpModule.Dispose() IHttpModule.Dispose() IHttpModule.Dispose()

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

IHttpModule.Init(HttpApplication) IHttpModule.Init(HttpApplication) IHttpModule.Init(HttpApplication) IHttpModule.Init(HttpApplication)

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

Applies to

See Also