共用方式為


Route.GetRouteData(HttpContextBase) 方法

定義

傳回所要求路徑的相關資訊。

public:
 override System::Web::Routing::RouteData ^ GetRouteData(System::Web::HttpContextBase ^ httpContext);
public override System.Web.Routing.RouteData GetRouteData (System.Web.HttpContextBase httpContext);
override this.GetRouteData : System.Web.HttpContextBase -> System.Web.Routing.RouteData
Public Overrides Function GetRouteData (httpContext As HttpContextBase) As RouteData

參數

httpContext
HttpContextBase

封裝 HTTP 要求相關資訊的物件。

傳回

包含路由定義值的物件。

適用於

另請參閱