RequestContext.RouteData 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取关于请求的路由的信息。
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) 构造函数时将值作为参数传递。