Aracılığıyla paylaş


NotFound Sınıf

Tanım

IResult Yürütmede, yanıta Bulunamadı (404) durum koduyla bir nesne yazar.

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
Devralma
NotFound
Uygulamalar

Özellikler

StatusCode

HTTP durum kodunu alır: Status404NotFound

Yöntemler

ExecuteAsync(HttpContext)

Sonucu yansıtan bir HTTP yanıtı yazın.

Belirtik Arabirim Kullanımları

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

İlgili Endpoint ve MethodInfoiçin meta verileri doldurur.

IStatusCodeHttpResult.StatusCode

IResult Yürütmede, yanıta Bulunamadı (404) durum koduyla bir nesne yazar.

Şunlara uygulanır