ValidationProblem 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 ValidationProblem : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<Microsoft.AspNetCore.Http.HttpValidationProblemDetails>, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type ValidationProblem = class
interface IResult
interface IEndpointMetadataProvider
interface IStatusCodeHttpResult
interface IContentTypeHttpResult
interface IValueHttpResult
interface IValueHttpResult<HttpValidationProblemDetails>
Public NotInheritable Class ValidationProblem
Implements IContentTypeHttpResult, IEndpointMetadataProvider, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of HttpValidationProblemDetails)
- Inheritance
-
ValidationProblem
- Implements
Properties
ContentType |
Gets the value for the |
ProblemDetails |
Gets the HttpValidationProblemDetails instance. |
StatusCode |
Gets the HTTP status code: Status400BadRequest |
Methods
ExecuteAsync(HttpContext) |
Write an HTTP response reflecting the result. |