RangeRouteConstraint Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Omezení parametru trasy tak, aby byl celé číslo v daném rozsahu hodnot.
public ref class RangeRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type RangeRouteConstraint = class
interface IRouteConstraint
type RangeRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
interface IParameterLiteralNodeMatchingPolicy
type RangeRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
type RangeRouteConstraint = class
interface IParameterPolicy
interface IRouteConstraint
Public Class RangeRouteConstraint
Implements IRouteConstraint
Public Class RangeRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
- Dědičnost
-
RangeRouteConstraint
- Implementuje
Konstruktory
| RangeRouteConstraint(Int64, Int64) |
Inicializuje novou instanci RangeRouteConstraint třídy. |
Vlastnosti
| Max |
Získá maximální povolenou hodnotu parametru trasy. |
| Min |
Získá minimální povolenou hodnotu 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) |
Omezení parametru trasy tak, aby byl celé číslo v daném rozsahu hodnot. |