Table of Contents

Method Match

Namespace
Velvet
Assembly
Velvet.Docs.dll

Match(string)

Searches for the best-matching route branch for the given path.

public IReadOnlyList<RouteMatch>? Match(string path)

Parameters

path string

Path to match. null and empty string are invalid and return null (use "/" for the root path).

Returns

IReadOnlyList<RouteMatch>

The matched chain (parent first) or null when nothing matches.