Aracılığıyla paylaş


NotFound<TValue> Sınıf

Tanım

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

public sealed class NotFound<TValue> : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<TValue>, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type NotFound<'Value> = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
    interface IValueHttpResult
    interface IValueHttpResult<'Value>
Public NotInheritable Class NotFound(Of TValue)
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of TValue)

Tür Parametreleri

TValue

JSON yanıt gövdesine seri hale getirilecek nesnenin türü.

Devralma
NotFound<TValue>
Uygulamalar

Özellikler

StatusCode

HTTP durum kodunu alır: Status404NotFound

Value

Nesne sonucunu alır.

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.

IValueHttpResult.Value

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

Şunlara uygulanır