15 references to NotFoundPage
Microsoft.AspNetCore.Components (10)
Routing\Router.cs (10)
146if (NotFoundPage != null) 151throw new InvalidOperationException($"Setting {nameof(NotFound)} and {nameof(NotFoundPage)} properties simultaneously is not supported. Use either {nameof(NotFound)} or {nameof(NotFoundPage)}."); 154if (!typeof(IComponent).IsAssignableFrom(NotFoundPage)) 156throw new InvalidOperationException($"The type {NotFoundPage.FullName} " + 160var routeAttributes = NotFoundPage.GetCustomAttributes(typeof(RouteAttribute), inherit: true); 163throw new InvalidOperationException($"The type {NotFoundPage.FullName} " + 394bool renderContentIsProvided = NotFoundPage != null || args.Path != null; 449if (NotFoundPage != null) 453new RouteData(NotFoundPage, _emptyParametersDictionary));
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
119throw new InvalidOperationException($"The {nameof(Router.NotFoundPage)} route must be specified or re-execution middleware has to be set to render not found content.");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
949string expectedError = $"The {nameof(Router.NotFoundPage)} route must be specified or re-execution middleware has to be set to render not found content.";
Microsoft.AspNetCore.Components.Tests (3)
Routing\RouterTest.cs (3)
293{ nameof(Router.NotFoundPage), typeof(NotFoundTestComponent) } 326{ nameof(Router.NotFoundPage), typeof(NotFoundTestComponent) } 425{ nameof(Router.NotFoundPage), typeof(NotFoundTestComponent) }