Aracılığıyla paylaş


ProblemHttpResult Sınıf

Tanım

IResult Yürütmede Sorun Ayrıntıları HTTP API'lerinin yanıtlarını yazması içinhttps://tools.ietf.org/html/rfc7807

public sealed class ProblemHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<Microsoft.AspNetCore.Mvc.ProblemDetails>
type ProblemHttpResult = class
    interface IResult
    interface IStatusCodeHttpResult
    interface IContentTypeHttpResult
    interface IValueHttpResult
    interface IValueHttpResult<ProblemDetails>
Public NotInheritable Class ProblemHttpResult
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of ProblemDetails)
Devralma
ProblemHttpResult
Uygulamalar

Özellikler

ContentType

Üst bilgi için Content-Type değeri alır: application/problem+json

ProblemDetails

ProblemDetails Örneği alır.

StatusCode

HTTP durum kodunu alır.

Yöntemler

ExecuteAsync(HttpContext)

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

Belirtik Arabirim Kullanımları

IStatusCodeHttpResult.StatusCode

IResult Yürütmede Sorun Ayrıntıları HTTP API'lerinin yanıtlarını yazması içinhttps://tools.ietf.org/html/rfc7807

IValueHttpResult.Value

IResult Yürütmede Sorun Ayrıntıları HTTP API'lerinin yanıtlarını yazması içinhttps://tools.ietf.org/html/rfc7807

IValueHttpResult<ProblemDetails>.Value

IResult Yürütmede Sorun Ayrıntıları HTTP API'lerinin yanıtlarını yazması içinhttps://tools.ietf.org/html/rfc7807

Şunlara uygulanır