Aracılığıyla paylaş


UnprocessableEntity<TValue> Sınıf

Tanım

IResult Yürütmede yanıta İşlenemeyen Varlık (422) durum koduyla bir nesne yazar.

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

Tür Parametreleri

TValue

JSON'un yanıt gövdesine seri hale getirileceği nesnenin türü.

Devralma
UnprocessableEntity<TValue>
Uygulamalar

Özellikler

StatusCode

HTTP durum kodunu alır: Status422UnprocessableEntity

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 İşlenemeyen Varlık (422) durum koduyla bir nesne yazar.

IValueHttpResult.Value

IResult Yürütmede yanıta İşlenemeyen Varlık (422) durum koduyla bir nesne yazar.

Şunlara uygulanır