Compartir a través de


TemplateMatcher.TryMatch(PathString, RouteValueDictionary) Método

Definición

Evalúa si el proporcionado path coincide con .Template values Rellena con valores de parámetro.

public:
 bool TryMatch(Microsoft::AspNetCore::Http::PathString path, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
public bool TryMatch (Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
member this.TryMatch : Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Routing.RouteValueDictionary -> bool
Public Function TryMatch (path As PathString, values As RouteValueDictionary) As Boolean

Parámetros

path
PathString

que PathString representa la ruta que se va a buscar.

values
RouteValueDictionary

que RouteValueDictionary se va a rellenar con valores de parámetro.

Devoluciones

true si path coincide con Template.

Se aplica a