Table of Contents

Property Guard

Namespace
Velvet
Assembly
Velvet.Docs.dll

Guard

Dynamic redirect predicate. Returning null lets navigation continue; returning a non-null path redirects to it. Evaluated after Match and before Loader. RedirectTo and Guard cannot be specified together.

public Func<RouteLoaderContext, string>? Guard { get; init; }

Property Value

Func<RouteLoaderContext, string>