VirtualPathData.DataTokens Property

Gets the collection of custom values for the route definition.

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

public RouteValueDictionary DataTokens { get; }

Property Value

Type: System.Web.Routing.RouteValueDictionary
A collection of custom values for a route.

You use the DataTokens property to retrieve values that are associated with the route, but that are not used to determine whether a route matches a URL pattern. These values can be used by the route handler to process the request.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft