NotFound Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IResult that on execution will write an object to the response with Not Found (404) status code.
C#
public sealed class NotFound : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type NotFound = class
interface IResult
interface IEndpointMetadataProvider
interface IStatusCodeHttpResult
Public NotInheritable Class NotFound
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
- Inheritance
-
NotFound
- Implements
Status |
Gets the HTTP status code: Status404NotFound |
Execute |
Write an HTTP response reflecting the result. |
IEndpoint |
Populates metadata for the related Endpoint and MethodInfo. |
IStatus |
Продукт | Версии |
---|---|
ASP.NET Core | 7.0, 8.0, 9.0 |