Class HttpRouteDataExtensions
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
IHttpRouteDataA 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
IHttpRouteDataThe route data, to be mutated in-place.