Share via


HttpRouteData Class

 

Encapsulates information regarding the HTTP route.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.Routing.HttpRouteData

Syntax

public class HttpRouteData : IHttpRouteData
public ref class HttpRouteData : IHttpRouteData
type HttpRouteData = 
    class
        interface IHttpRouteData
    end
Public Class HttpRouteData
    Implements IHttpRouteData

Constructors

Name Description
System_CAPS_pubmethod HttpRouteData(IHttpRoute)

Initializes a new instance of the HttpRouteData class.

System_CAPS_pubmethod HttpRouteData(IHttpRoute, HttpRouteValueDictionary)

Initializes a new instance of the HttpRouteData class.

Properties

Name Description
System_CAPS_pubproperty Route

Gets the object that represents the route.

System_CAPS_pubproperty Values

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

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod GetSubRoutes()

If a route is really a union of other routes, return the set of sub routes.(Defined by HttpRouteDataExtensions.)

System_CAPS_pubmethod RemoveOptionalRoutingParameters()

Removes all optional parameters that do not have a value from the route data.(Defined by HttpRouteDataExtensions.)

Thread Safety

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

See Also

System.Web.Http.Routing Namespace

Return to top