DynamicDataRoute DynamicDataRoute DynamicDataRoute DynamicDataRoute Class

Definition

Represents a route that is used by ASP.NET Dynamic Data.

public ref class DynamicDataRoute : System::Web::Routing::Route
public class DynamicDataRoute : System.Web.Routing.Route
type DynamicDataRoute = class
    inherit Route
Public Class DynamicDataRoute
Inherits Route
Inheritance
DynamicDataRouteDynamicDataRouteDynamicDataRouteDynamicDataRoute

Remarks

You use routes to configure Dynamic Data behavior.

The static Routes property of the RouteTable type holds a collection of routes. For Dynamic Data, one or more routes are typically registered (added to the Routes property) in the Application_Start event in the Global.asax file. For example, routes determine whether the details for a row of data should be shown on the same page as the list of rows. They can also determine whether details should appear on the same page as the list of rows for some tables but not others.

You set the Action, ViewName, Table, and Model properties and provide a pattern for the URL in the Route constructor.

Dynamic Data uses the URL pattern that you provide to match URL patterns for requests and to create URLs. For more information, see DynamicDataRoute.

Constructors

DynamicDataRoute(String) DynamicDataRoute(String) DynamicDataRoute(String) DynamicDataRoute(String)

Initializes a new instance of the DynamicDataRoute class by using the specified URL pattern.

Properties

Action Action Action Action

Gets or sets the name of an action for a route.

Constraints Constraints Constraints Constraints

Gets or sets a dictionary of expressions that specify valid values for a URL parameter.

(Inherited from Route)
DataTokens DataTokens DataTokens DataTokens

Gets or sets custom values that are passed to the route handler, but which are not used to determine whether the route matches a URL pattern.

(Inherited from Route)
Defaults Defaults Defaults Defaults

Gets or sets the values to use if the URL does not contain all the parameters.

(Inherited from Route)
Model Model Model Model

Gets or sets the data model to which the route applies.

RouteExistingFiles RouteExistingFiles RouteExistingFiles RouteExistingFiles

Gets or sets a value that indicates whether ASP.NET routing should handle URLs that match an existing file.

(Inherited from RouteBase)
RouteHandler RouteHandler RouteHandler RouteHandler

Gets or sets the object that processes requests for the route.

Table Table Table Table

Gets or sets the name of the table for the route.

Url Url Url Url

Gets or sets the URL pattern for the route.

(Inherited from Route)
ViewName ViewName ViewName ViewName

Gets or sets the name of the .aspx page that is associated with a route.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetActionFromRouteData(RouteData) GetActionFromRouteData(RouteData) GetActionFromRouteData(RouteData) GetActionFromRouteData(RouteData)

Returns the action from the RouteData object for the current Dynamic Data Web request.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetRouteData(HttpContextBase) GetRouteData(HttpContextBase) GetRouteData(HttpContextBase) GetRouteData(HttpContextBase)

Returns routing information for a specific Web request.

GetTableFromRouteData(RouteData) GetTableFromRouteData(RouteData) GetTableFromRouteData(RouteData) GetTableFromRouteData(RouteData)

Identifies the table that is associated with a Dynamic Data Web page request.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetVirtualPath(RequestContext, RouteValueDictionary) GetVirtualPath(RequestContext, RouteValueDictionary) GetVirtualPath(RequestContext, RouteValueDictionary) GetVirtualPath(RequestContext, RouteValueDictionary)

Returns the virtual path of a route.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessConstraint(HttpContextBase, Object, String, RouteValueDictionary, RouteDirection) ProcessConstraint(HttpContextBase, Object, String, RouteValueDictionary, RouteDirection) ProcessConstraint(HttpContextBase, Object, String, RouteValueDictionary, RouteDirection) ProcessConstraint(HttpContextBase, Object, String, RouteValueDictionary, RouteDirection)

Determines whether a parameter value matches the constraint for that parameter.

(Inherited from Route)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also