Compartilhar via


Controller.RouteData Property

Gets the route data for the current request.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public ReadOnly Property RouteData As RouteData
    Get
public RouteData RouteData { get; }
public:
property RouteData^ RouteData {
    RouteData^ get ();
}

Property Value

Type: System.Web.Routing.RouteData
The route data.

Remarks

This property is undefined before the Initialize method of the controller is called.

See Also

Reference

Controller Class

System.Web.Mvc Namespace