Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpRoute Class

 

Represents a route class for self-host (i.e. hosted outside of ASP.NET).

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

System::Object
  System.Web.Http.Routing::HttpRoute

public ref class HttpRoute : IHttpRoute

NameDescription
System_CAPS_pubmethodHttpRoute()

Initializes a new instance of the HttpRoute class.

System_CAPS_pubmethodHttpRoute(String^)

Initializes a new instance of the HttpRoute class.

System_CAPS_pubmethodHttpRoute(String^, HttpRouteValueDictionary^)

Initializes a new instance of the HttpRoute class.

System_CAPS_pubmethodHttpRoute(String^, HttpRouteValueDictionary^, HttpRouteValueDictionary^)

Initializes a new instance of the HttpRoute class.

System_CAPS_pubmethodHttpRoute(String^, HttpRouteValueDictionary^, HttpRouteValueDictionary^, HttpRouteValueDictionary^)

Initializes a new instance of the HttpRoute class.

System_CAPS_pubmethodHttpRoute(String^, HttpRouteValueDictionary^, HttpRouteValueDictionary^, HttpRouteValueDictionary^, HttpMessageHandler^)

Initializes a new instance of the HttpRoute class.

NameDescription
System_CAPS_pubpropertyConstraints

Gets the constraints for the route parameters.

System_CAPS_pubpropertyDataTokens

Gets any additional data tokens not used directly to determine whether a route matches an incoming HttpRequestMessage.

System_CAPS_pubpropertyDefaults

Gets the default values for route parameters if not provided by the incoming HttpRequestMessage.

System_CAPS_pubpropertyHandler

Gets or sets the http route handler.

System_CAPS_pubpropertyRouteTemplate

Gets the route template describing the URI pattern to match against.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetRouteData(String^, HttpRequestMessage^)

Determines whether this route is a match for the incoming request by looking up the HttpRouteData for the route.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetVirtualPath(HttpRequestMessage^, IDictionary<String^, Object^>^)

Attempts to generate a URI that represents the values passed in based on current values from the HttpRouteData and new values using the specified HttpRoute.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodProcessConstraint(HttpRequestMessage^, Object^, String^, HttpRouteValueDictionary^, HttpRouteDirection)

Determines whether this instance equals a specified route.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticHttpRouteKey

Specifies the HTTP route key.

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

Return to top
Show: