NavigationLock Class

Definition

A component that can be used to intercept navigation events.

C#
public sealed class NavigationLock : IAsyncDisposable, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender
Inheritance
NavigationLock
Implements

Constructors

Properties

ConfirmExternalNavigation

Gets or sets whether a browser dialog should prompt the user to either confirm or cancel external navigations.

OnBeforeInternalNavigation

Gets or sets a callback to be invoked when an internal navigation event occurs.

Explicit Interface Implementations

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0