RouteBase.GetRouteData(HttpContextBase) 方法

定义

在派生类中重写时,返回关于请求的路由信息。

public:
 abstract System::Web::Routing::RouteData ^ GetRouteData(System::Web::HttpContextBase ^ httpContext);
public abstract System.Web.Routing.RouteData GetRouteData (System.Web.HttpContextBase httpContext);
abstract member GetRouteData : System.Web.HttpContextBase -> System.Web.Routing.RouteData
Public MustOverride Function GetRouteData (httpContext As HttpContextBase) As RouteData

参数

httpContext
HttpContextBase

一个对象,该对象封装有关 HTTP 请求的信息。

返回

一个对象,如果路由与当前请求匹配,则该对象包含路由定义的值;如果路由与该请求不匹配,则为 null

适用于

另请参阅