HttpRouteDataExtensions.RemoveOptionalRoutingParameters Method (IHttpRouteData)
Removes all optional parameters that do not have a value from the route data.
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public static void RemoveOptionalRoutingParameters(
this IHttpRouteData routeData
)
public:
[ExtensionAttribute]
static void RemoveOptionalRoutingParameters(
IHttpRouteData^ routeData
)
static member RemoveOptionalRoutingParameters :
routeData:IHttpRouteData -> unit
<ExtensionAttribute>
Public Shared Sub RemoveOptionalRoutingParameters (
routeData As IHttpRouteData
)
Parameters
routeData
Type: System.Web.Http.Routing.IHttpRouteDataThe route data, to be mutated in-place.
See Also
HttpRouteDataExtensions Class
System.Web.Http.Routing Namespace
Return to top