LengthRouteConstraint Class

 

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

Namespace:   System.Web.Mvc.Routing.Constraints
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

System.Object
  System.Web.Mvc.Routing.Constraints.LengthRouteConstraint

public class LengthRouteConstraint : IRouteConstraint

NameDescription
System_CAPS_pubmethodLengthRouteConstraint(Int32)

System_CAPS_pubmethodLengthRouteConstraint(Int32, Int32)

Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length.

NameDescription
System_CAPS_pubpropertyLength

Gets the length of the route parameter, if one is set.

System_CAPS_pubpropertyMaxLength

Gets the maximum length of the route parameter, if one is set.

System_CAPS_pubpropertyMinLength

Gets the minimum length of the route parameter, if one is set.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: