OptionalRouteConstraint Constructor (IRouteConstraint)
Initializes a new instance of the OptionalRouteConstraint class.
Namespace: System.Web.Mvc.Routing.Constraints
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public OptionalRouteConstraint(
IRouteConstraint innerConstraint
)
public:
OptionalRouteConstraint(
IRouteConstraint^ innerConstraint
)
new :
innerConstraint:IRouteConstraint -> OptionalRouteConstraint
Public Sub New (
innerConstraint As IRouteConstraint
)
Parameters
innerConstraint
Type: System.Web.Routing.IRouteConstraintThe inner constraint to match if the parameter is not an optional parameter without a value
See Also
OptionalRouteConstraint Class
System.Web.Mvc.Routing.Constraints Namespace
Return to top