This documentation is archived and is not being maintained.

Route Members

Visual Studio 2008

Provides properties and methods for defining a route and for obtaining information about the route.

The Route type exposes the following members.

  NameDescription
Public method Route Overloaded. Initializes a new instance of the Route class.
Top

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRouteData Returns information about the requested route. (Overrides RouteBase.GetRouteData(HttpContextBase).)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GetVirtualPath Returns information about the URL that is associated with the route. (Overrides RouteBase.GetVirtualPath(RequestContext, RouteValueDictionary).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ProcessConstraint Determines whether a parameter value matches the constraint for that parameter.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property Constraints Gets or sets a dictionary of expressions that specify valid values for a URL parameter.
Public property 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.
Public property Defaults Gets or sets the values to use if the URL does not contain all the parameters.
Public property RouteHandler Gets or sets the object that processes requests for the route.
Public property Url Gets or sets the URL pattern for the route.
Top
Show: