RouteData Class

Definition

Encapsulates information about a route.

public class RouteData
Inheritance
RouteData

Remarks

The RouteData class contains the values for a requested route. Typically, you retrieve a RouteData object by calling the GetRouteData method.

Constructors

RouteData()

Initializes a new instance of the RouteData class.

RouteData(RouteBase, IRouteHandler)

Initializes a new instance of the RouteData class by using the specified route and route handler.

Properties

DataTokens

Gets a collection of custom values that are passed to the route handler but are not used when ASP.NET routing determines whether the route matches a request.

Route

Gets or sets the object that represents a route.

RouteHandler

Gets or sets the object that processes a requested route.

Values

Gets a collection of URL parameter values and default values for the route.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetRequiredString(String)

Retrieves the value with the specified identifier.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also