This documentation is archived and is not being maintained.

DynamicDataRoute Class

Updated: July 2008

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

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

[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class DynamicDataRoute : Route

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.

System.Object
  System.Web.Routing.RouteBase
    System.Web.Routing.Route
      System.Web.DynamicData.DynamicDataRoute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Date

History

Reason

July 2008

Added topic for new class.

SP1 feature change.

Show: