MaxLengthRouteConstraint Класс

Определение

Ограничивает параметр маршрута для представления строковых значений с максимальной длиной.

public ref class MaxLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MaxLengthRouteConstraint = class
    interface IRouteConstraint
type MaxLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type MaxLengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type MaxLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class MaxLengthRouteConstraint
Implements IRouteConstraint
Public Class MaxLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
Наследование
MaxLengthRouteConstraint
Реализации

Конструкторы

MaxLengthRouteConstraint(Int32)

Инициализирует новый экземпляр класса MaxLengthRouteConstraint.

Свойства

MaxLength

Возвращает максимальную длину, допустимую для параметра маршрута.

Методы

Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

Определяет, содержит ли параметр URL-адреса допустимое значение для этого ограничения.

Явные реализации интерфейса

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Ограничивает параметр маршрута для представления строковых значений с максимальной длиной.

Применяется к