Table of Contents

Class HttpRouteData

Namespace
System.Web.Http.Routing
Assembly
System.Web.Http.dll

Encapsulates information regarding the HTTP route.

public class HttpRouteData : IHttpRouteData
Inheritance
HttpRouteData
Implements
Inherited Members

Constructors

HttpRouteData(IHttpRoute)

Initializes a new instance of the HttpRouteData class.

public HttpRouteData(IHttpRoute route)

Parameters

route IHttpRoute

An object that defines the route.

HttpRouteData(IHttpRoute, HttpRouteValueDictionary)

Initializes a new instance of the HttpRouteData class.

public HttpRouteData(IHttpRoute route, HttpRouteValueDictionary values)

Parameters

route IHttpRoute

An object that defines the route.

values HttpRouteValueDictionary

The value.

Properties

Route

Gets the object that represents the route.

public IHttpRoute Route { get; }

Property Value

IHttpRoute

the object that represents the route.

Values

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

public IDictionary<string, object> Values { get; }

Property Value

IDictionary<string, object>

An object that contains values that are parsed from the URL and from default values.