RequestContext.RouteData 属性

定义

获取关于请求的路由的信息。

public:
 property System::Web::Routing::RouteData ^ RouteData { System::Web::Routing::RouteData ^ get(); };
public:
 virtual property System::Web::Routing::RouteData ^ RouteData { System::Web::Routing::RouteData ^ get(); void set(System::Web::Routing::RouteData ^ value); };
public System.Web.Routing.RouteData RouteData { get; }
public virtual System.Web.Routing.RouteData RouteData { get; set; }
member this.RouteData : System.Web.Routing.RouteData
member this.RouteData : System.Web.Routing.RouteData with get, set
Public ReadOnly Property RouteData As RouteData
Public Overridable Property RouteData As RouteData

属性值

一个包含有关请求的路由的信息的对象。

注解

若要设置 RouteData 属性,必须在调用 RequestContext(HttpContextBase, RouteData) 构造函数时将值作为参数传递。

适用于