Method UseResolvedPath
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
UseResolvedPath(string, RelativeRoutingType)
Resolves to to an absolute pathname, search and hash as UseNavigate
would navigate to it from the calling component's route: React Router's useResolvedPath.
public static ResolvedPath UseResolvedPath(string to, RelativeRoutingType relative = RelativeRoutingType.Route)
Parameters
tostringAbsolute or relative target; the empty string is the calling route itself.
relativeRelativeRoutingTypeWhether a
..drops a route or a URL segment.
Returns
Exceptions
- InvalidOperationException
No
V.RouterProvideris mounted above the caller.