Compartilhar via


StringRouteConstraint Classe

Definição

Restringe um parâmetro de rota para conter apenas uma cadeia de caracteres especificada.

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
Herança
StringRouteConstraint
Implementações

Construtores

StringRouteConstraint(String)

Inicializa uma nova instância da classe StringRouteConstraint.

Métodos

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

Determina se o parâmetro da URL contém um valor válido para esta restrição.

Implantações explícitas de interface

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Restringe um parâmetro de rota para conter apenas uma cadeia de caracteres especificada.

Aplica-se a