System.Web.Mvc.Routing.Constraints Namespace

 

The System.Web.Mvc.Routing.Constraints namespace contains classes related to route parameter constraints.

ClassDescription
System_CAPS_pubclassAlphaRouteConstraint

Constrains a route parameter to contain only lowercase or uppercase letters A through Z in the English alphabet.

System_CAPS_pubclassBoolRouteConstraint

Constrains a route parameter to represent only Boolean values.

System_CAPS_pubclassCompoundRouteConstraint

Constrains a route by several child constraints.

System_CAPS_pubclassDateTimeRouteConstraint

Constrains a route parameter to represent only DateTime values.

System_CAPS_pubclassDecimalRouteConstraint

Constrains a route parameter to represent only decimal values.

System_CAPS_pubclassDoubleRouteConstraint

Constrains a route parameter to represent only 64-bit floating-point values.

System_CAPS_pubclassFloatRouteConstraint

Constrains a route parameter to represent only 32-bit floating-point values.

System_CAPS_pubclassGuidRouteConstraint

Constrains a route parameter to represent only Guid values.

System_CAPS_pubclassIntRouteConstraint

Constrains a route parameter to represent only 32-bit integer values.

System_CAPS_pubclassLengthRouteConstraint

Constrains a route parameter to be a string of a given length or within a given range of lengths.

System_CAPS_pubclassLongRouteConstraint

Constrains a route parameter to represent only 64-bit integer values.

System_CAPS_pubclassMaxLengthRouteConstraint

Constrains a route parameter to be a string with a maximum length.

System_CAPS_pubclassMaxRouteConstraint

Constrains a route parameter to be an integer with a maximum value.

System_CAPS_pubclassMinLengthRouteConstraint

Constrains a route parameter to be a string with a maximum length.

System_CAPS_pubclassMinRouteConstraint

Constrains a route parameter to be a long with a minimum value.

System_CAPS_pubclassOptionalRouteConstraint

Constrains a route by an inner constraint that doesn't fail when an optional parameter is set to its default value.

System_CAPS_pubclassRangeRouteConstraint

Constraints a route parameter to be an integer within a given range of values.

System_CAPS_pubclassRegexRouteConstraint

Constrains a route parameter to match a regular expression.

Return to top
Show: