Partilhar via


TemplateMatcher.TryMatch(PathString, RouteValueDictionary) Método

Definição

Avalia se o fornecido path corresponde ao Template. values Popula com 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

Um PathString que representa a rota a ser correspondida.

values
RouteValueDictionary

Um RouteValueDictionary a ser preenchido com valores de parâmetro.

Retornos

true se path corresponder Templatea .

Aplica-se a