ProblemHttpResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IResult that on execution will write Problem Details HTTP API responses based on https://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>, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
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 IEndpointMetadataProvider
interface IStatusCodeHttpResult
interface IContentTypeHttpResult
interface IValueHttpResult
interface IValueHttpResult<ProblemDetails>
type ProblemHttpResult = class
interface IResult
interface IStatusCodeHttpResult
interface IContentTypeHttpResult
interface IValueHttpResult
interface IValueHttpResult<ProblemDetails>
Public NotInheritable Class ProblemHttpResult
Implements IContentTypeHttpResult, IEndpointMetadataProvider, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of ProblemDetails)
Public NotInheritable Class ProblemHttpResult
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of ProblemDetails)
- Inheritance
-
ProblemHttpResult
- Implements
Properties
| ContentType |
Gets the value for the |
| ProblemDetails |
Gets the ProblemDetails instance. |
| StatusCode |
Gets the HTTP status code. |
Methods
| ExecuteAsync(HttpContext) |
Write an HTTP response reflecting the result. |