Bagikan melalui


StringRouteConstraint Kelas

Definisi

Membatasi parameter rute untuk hanya berisi string tertentu.

public ref class StringRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type StringRouteConstraint = class
    interface IRouteConstraint
type StringRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type StringRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type StringRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class StringRouteConstraint
Implements IRouteConstraint
Public Class StringRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
Warisan
StringRouteConstraint
Penerapan

Konstruktor

StringRouteConstraint(String)

Menginisialisasi instans baru kelas StringRouteConstraint.

Metode

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

Menentukan apakah parameter URL berisi nilai yang valid untuk batasan ini.

Implementasi Antarmuka Eksplisit

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Membatasi parameter rute untuk hanya berisi string tertentu.

Berlaku untuk