LengthRouteConstraint Klasa

Definicja

Ogranicza parametr trasy jako ciąg o danej długości lub w danym zakresie długości.

public ref class LengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type LengthRouteConstraint = class
    interface IRouteConstraint
type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type LengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class LengthRouteConstraint
Implements IRouteConstraint
Public Class LengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
Dziedziczenie
LengthRouteConstraint
Implementuje

Konstruktory

LengthRouteConstraint(Int32)

Inicjuje LengthRouteConstraint nowe wystąpienie klasy, które ogranicza parametr trasy jako ciąg danej długości.

LengthRouteConstraint(Int32, Int32)

Inicjuje LengthRouteConstraint nowe wystąpienie klasy, które ogranicza parametr trasy jako ciąg danej długości.

Właściwości

MaxLength

Pobiera maksymalną dozwoloną długość parametru trasy.

MinLength

Pobiera minimalną dozwoloną długość parametru trasy.

Metody

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

Określa, czy parametr adresu URL zawiera prawidłową wartość tego ograniczenia.

Jawne implementacje interfejsu

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Ogranicza parametr trasy jako ciąg o danej długości lub w danym zakresie długości.

Dotyczy