Share via


LengthRouteConstraint.MaxLength Property

 

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

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

Syntax

public Nullable<int> MaxLength { get; private set; }
public:
property Nullable<int> MaxLength {
    Nullable<int> get();
    private: void set(Nullable<int> value);
}
member MaxLength : Nullable<int> with get, private set
Public Property MaxLength As Nullable(Of Integer)
    Get
    Private Set
End Property

Property Value

Type: System.Nullable<Int32>

See Also

LengthRouteConstraint Class
System.Web.Mvc.Routing.Constraints Namespace

Return to top