File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/Components/Components/src Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,15 @@ public event EventHandler<NotFoundEventArgs> OnNotFound
6262 private string ? _uri ;
6363 private bool _isInitialized ;
6464 private const string EnableThrowNavigationException = "Microsoft.AspNetCore.Components.Endpoints.HttpNavigationManager.EnableThrowNavigationException" ;
65+
66+ /// <summary>
67+ /// Gets a value indicating whether navigation exceptions should be thrown during navigation.
68+ /// </summary>
69+ /// <remarks>
70+ /// This property is controlled by the AppContext switch
71+ /// <c>Microsoft.AspNetCore.Components.Endpoints.HttpNavigationManager.EnableThrowNavigationException</c>.
72+ /// When enabled, navigation operations may throw exceptions for debugging or testing purposes.
73+ /// </remarks>
6574 protected static bool ThrowNavigationException =>
6675 AppContext . TryGetSwitch ( EnableThrowNavigationException , out var switchValue ) && switchValue ;
6776
You can’t perform that action at this time.
0 commit comments