Прочетете на английски

Споделяне чрез


NotFound Class

Definition

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
Inheritance
NotFound
Implements

Properties

StatusCode

Gets the HTTP status code: Status404NotFound

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

Applies to

Продукт Версии
ASP.NET Core 7.0, 8.0, 9.0