TemplateMatcher.TryMatch(PathString, RouteValueDictionary) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Evaluates if the provided path matches the Template. Populates
values with parameter values.
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
Parameters
- path
- PathString
A PathString representing the route to match.
- values
- RouteValueDictionary
A RouteValueDictionary to populate with parameter values.
Returns
true if path matches Template.