Export (0) Print
Expand All

RouteData Class

Encapsulates information about a route.


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

public ref class RouteData

The RouteData type exposes the following members.

Public methodRouteData()Initializes a new instance of the RouteData class.
Public methodRouteData(RouteBase, IRouteHandler)Initializes a new instance of the RouteData class by using the specified route and route handler.

Public propertyDataTokensGets 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.
Public propertyRouteGets or sets the object that represents a route.
Public propertyRouteHandlerGets or sets the object that processes a requested route.
Public propertyValuesGets a collection of URL parameter values and default values for the route.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetRequiredStringRetrieves the value with the specified identifier.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

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