UrlRoutingModule 类

定义

将 URL 请求与定义的路由进行匹配。

public ref class UrlRoutingModule : System::Web::IHttpModule
public class UrlRoutingModule : System.Web.IHttpModule
type UrlRoutingModule = class
    interface IHttpModule
Public Class UrlRoutingModule
Implements IHttpModule
继承
UrlRoutingModule
实现

注解

UrlRoutingModule类将 HTTP 请求与 ASP.NET 应用程序中的路由进行匹配。 模块将循环访问属性中的所有路由 RouteCollection ,并搜索具有与 HTTP 请求格式匹配的 URL 模式的路由。 当模块找到匹配的路由时,它将检索 IRouteHandler 该路由的对象。 从路由处理程序中,该模块将获取一个 IHttpHandler 对象,并将该对象用作当前请求的 HTTP 处理程序。

构造函数

UrlRoutingModule()

初始化 UrlRoutingModule 类的新实例。

属性

RouteCollection

获取或设置 ASP.NET 应用程序的已定义路由的集合。

方法

Dispose()

释放该模块使用的资源(内存除外)。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
Init(HttpApplication)

初始化模块,并使其为处理请求做好准备。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
PostMapRequestHandler(HttpContextBase)
已过时。

将当前请求的 HTTP 处理程序分配到上下文。

PostResolveRequestCache(HttpContextBase)

将 HTTP 请求匹配到某个路由,检索该路由的处理程序,并且将该处理程序设置为当前请求的 HTTP 处理程序。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

IHttpModule.Dispose()

有关此成员的说明,请参见 Dispose()

IHttpModule.Init(HttpApplication)

有关此成员的说明,请参见 IHttpModule.Init(HttpApplication)

适用于

另请参阅