Condividi tramite


StringRouteConstraint Classe

Definizione

Limita un parametro di route per contenere solo una stringa specificata.

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
Ereditarietà
StringRouteConstraint
Implementazioni

Costruttori

StringRouteConstraint(String)

Inizializza una nuova istanza della classe StringRouteConstraint.

Metodi

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

Determina se il parametro URL contiene un valore valido per questo vincolo.

Implementazioni dell'interfaccia esplicita

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Limita un parametro di route per contenere solo una stringa specificata.

Si applica a