TemplateMatcher.TryMatch(PathString, RouteValueDictionary) Method

Definition

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.

Applies to