OptionalRouteConstraint Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a constraint on an optional parameter. If the parameter is present, then it is constrained by InnerConstraint.
public ref class OptionalRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraintpublic class OptionalRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstrainttype OptionalRouteConstraint = class
    interface IRouteConstrainttype OptionalRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicytype OptionalRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraintPublic Class OptionalRouteConstraint
Implements IRouteConstraint- Inheritance
- 
				OptionalRouteConstraint
- Implements
Constructors
| OptionalRouteConstraint(IRouteConstraint) | Creates a new OptionalRouteConstraint instance given the  | 
Properties
| InnerConstraint | Gets the IRouteConstraint associated with the optional parameter. | 
Methods
| Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) | Determines whether the URL parameter contains a valid value for this constraint. |