| File: Routing\LocationChangedEventArgs.cs | Web Access |
| Project: src\aspnetcore\src\Components\Components\src\Microsoft.AspNetCore.Components.csproj (Microsoft.AspNetCore.Components) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Routing; /// <summary> /// <see cref="EventArgs" /> for <see cref="NavigationManager.LocationChanged" />. /// </summary> public class LocationChangedEventArgs : EventArgs { /// <summary> /// Initializes a new instance of <see cref="LocationChangedEventArgs" />. /// </summary> /// <param name="location">The location.</param> /// <param name="isNavigationIntercepted">A value that determines if navigation for the link was intercepted.</param> public LocationChangedEventArgs(string location, bool isNavigationIntercepted) { Location = location; IsNavigationIntercepted = isNavigationIntercepted; } /// <summary> /// Gets the changed location. /// </summary> public string Location { get; } /// <summary> /// Gets a value that determines if navigation for the link was intercepted. /// </summary> public bool IsNavigationIntercepted { get; } /// <summary> /// Gets the state associated with the current history entry. /// </summary> public string? HistoryEntryState { get; internal init; } }