Method MatchRouteExpression
MatchRouteExpression(in ReadOnlySpan<char>, in ReadOnlySpan<char>, StringComparison)
Attempts to match the specified route expression against the given path.
public static RouteMatch MatchRouteExpression(in ReadOnlySpan<char> routeExpression, in ReadOnlySpan<char> path, StringComparison stringComparer = StringComparison.Ordinal)
Parameters
routeExpressionReadOnlySpan<char>The route expression to match.
pathReadOnlySpan<char>The path to match against the route expression.
stringComparerStringComparisonThe string comparison to use when matching the route expression. Defaults to Ordinal.
Returns
- RouteMatch
A RouteMatch object indicating the result of the match.
MatchRouteExpression(string, string, StringComparison)
Attempts to match the specified route expression against the given path.
public static RouteMatch MatchRouteExpression(string routeExpression, string path, StringComparison stringComparer = StringComparison.Ordinal)
Parameters
routeExpressionstringThe route expression to match.
pathstringThe path to match against the route expression.
stringComparerStringComparisonThe string comparison to use when matching the route expression. Defaults to Ordinal.
Returns
- RouteMatch
A RouteMatch object indicating the result of the match.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語