Sdílet prostřednictvím


MinLengthRouteConstraint Třída

Definice

Omezí parametr trasy na řetězec s minimální délkou.

public ref class MinLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MinLengthRouteConstraint = class
    interface IRouteConstraint
type MinLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type MinLengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type MinLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class MinLengthRouteConstraint
Implements IRouteConstraint
Public Class MinLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
Dědičnost
MinLengthRouteConstraint
Implementuje

Konstruktory

MinLengthRouteConstraint(Int32)

Inicializuje novou instanci MinLengthRouteConstraint třídy.

Vlastnosti

MinLength

Získá minimální povolenou délku parametru trasy.

Metody

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

Určuje, zda parametr adresy URL obsahuje platnou hodnotu pro toto omezení.

Explicitní implementace rozhraní

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Omezí parametr trasy na řetězec s minimální délkou.

Platí pro