Table of Contents

Class HttpRouteDataExtensions

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

Removes all optional parameters that do not have a value from the route data.

public static class HttpRouteDataExtensions
Inheritance
HttpRouteDataExtensions
Inherited Members

Methods

GetSubRoutes(IHttpRouteData)

If a route is really a union of other routes, return the set of sub routes.

public static IEnumerable<IHttpRouteData> GetSubRoutes(this IHttpRouteData routeData)

Parameters

routeData IHttpRouteData

A union route data.

Returns

IEnumerable<IHttpRouteData>

Returns the set of sub routes contained within this route.

RemoveOptionalRoutingParameters(IHttpRouteData)

Removes all optional parameters that do not have a value from the route data.

public static void RemoveOptionalRoutingParameters(this IHttpRouteData routeData)

Parameters

routeData IHttpRouteData

The route data, to be mutated in-place.