11 references to NotFoundPage
Microsoft.AspNetCore.Components (10)
Routing\Router.cs (10)
138
if (
NotFoundPage
!= null)
143
throw new InvalidOperationException($"Setting {nameof(NotFound)} and {nameof(
NotFoundPage
)} properties simultaneously is not supported. Use either {nameof(NotFound)} or {nameof(
NotFoundPage
)}.");
146
if (!typeof(IComponent).IsAssignableFrom(
NotFoundPage
))
148
throw new InvalidOperationException($"The type {
NotFoundPage
.FullName} " +
152
var routeAttributes =
NotFoundPage
.GetCustomAttributes(typeof(RouteAttribute), inherit: true);
155
throw new InvalidOperationException($"The type {
NotFoundPage
.FullName} " +
392
bool renderContentIsProvided =
NotFoundPage
!= null || args.Path != null;
447
if (
NotFoundPage
!= null)
451
new RouteData(
NotFoundPage
, _emptyParametersDictionary));
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
119
throw new InvalidOperationException($"The {nameof(Router.
NotFoundPage
)} route must be specified or re-execution middleware has to be set to render not found content.");