RouteDataActionConstraint Class¶
Constructors¶
-
RouteDataActionConstraint
(System.String, System.String)¶ Initializes a [Microsoft.AspNet.Mvc.RouteDataActionConstraint](Microsoft.AspNet.Mvc.RouteDataActionConstraint.yml) with a key and value, that are required to make the action match.
Arguments: - routeKey (System.String) – The route key.
- routeValue (System.String) – The route value.
public RouteDataActionConstraint(string routeKey, string routeValue)
-
Methods¶
-
CreateCatchAll
(System.String)¶ Create a catch all constraint for the given key.
Arguments: - routeKey (System.String) – Route key.
Return type: Microsoft.AspNet.Mvc.RouteDataActionConstraint
Returns: a [Microsoft.AspNet.Mvc.RouteDataActionConstraint](Microsoft.AspNet.Mvc.RouteDataActionConstraint.yml) that represents a catch all constraint.
public static RouteDataActionConstraint CreateCatchAll(string routeKey)
-
Properties¶
-
KeyHandling
()¶ The key handling definition for this constraint.
Return type: Microsoft.AspNet.Mvc.RouteKeyHandling public RouteKeyHandling KeyHandling { get; }
-
RouteKey
()¶ The route key this constraint matches against.
Return type: System.String public string RouteKey { get; }
-
RouteValue
()¶ The route value this constraint matches against.
Return type: System.String public string RouteValue { get; }
-