Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ValidationProblemDetails Class
Definition
- Namespace:
- Microsoft.AspNetCore.Mvc
- Assembly:
- Microsoft.AspNetCore.Mvc.Core.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Mvc.Core v2.1.0
- Package:
- Microsoft.AspNetCore.Mvc.Core v2.2.0
- Package:
- Microsoft.AspNetCore.App.Ref v3.0.1
- Package:
- Microsoft.AspNetCore.App.Ref v3.1.10
- Package:
- Microsoft.AspNetCore.App.Ref v5.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
- Source:
- ValidationProblemDetails.cs
- Source:
- ValidationProblemDetails.cs
- Source:
- ValidationProblemDetails.cs
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.
A ProblemDetails for validation errors.
public ref class ValidationProblemDetails : Microsoft::AspNetCore::Mvc::ProblemDetails
public class ValidationProblemDetails : Microsoft.AspNetCore.Http.HttpValidationProblemDetails
public class ValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))]
public class ValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))]
public class ValidationProblemDetails : Microsoft.AspNetCore.Http.HttpValidationProblemDetails
type ValidationProblemDetails = class
inherit HttpValidationProblemDetails
type ValidationProblemDetails = class
inherit ProblemDetails
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))>]
type ValidationProblemDetails = class
inherit ProblemDetails
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))>]
type ValidationProblemDetails = class
inherit HttpValidationProblemDetails
Public Class ValidationProblemDetails
Inherits HttpValidationProblemDetails
Public Class ValidationProblemDetails
Inherits ProblemDetails
- Inheritance
- Inheritance
- Attributes
Constructors
| Name | Description |
|---|---|
| ValidationProblemDetails() |
Initializes a new instance of ValidationProblemDetails. |
| ValidationProblemDetails(IDictionary<String,String[]>) |
Initializes a new instance of ValidationProblemDetails using the specified |
| ValidationProblemDetails(ModelStateDictionary) |
Initializes a new instance of ValidationProblemDetails using the specified |
Properties
| Name | Description |
|---|---|
| Detail |
A human-readable explanation specific to this occurrence of the problem. (Inherited from ProblemDetails) |
| Errors |
Gets the validation errors associated with this instance of HttpValidationProblemDetails. |
| Extensions |
Gets the IDictionary<TKey,TValue> for extension members. Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as other members of a problem type. (Inherited from ProblemDetails) |
| Instance |
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. (Inherited from ProblemDetails) |
| Status |
The HTTP status code generated by the origin server for this occurrence of the problem; see RFC 9110, Section 15. (Inherited from ProblemDetails) |
| Title |
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization, e.g. using proactive content negotiation; see RFC 9110, Section 12. (Inherited from ProblemDetails) |
| Type |
A URI reference that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type, e.g. using HTML. When this member is not present, its value is assumed to be "about:blank"; see RFC 3986. (Inherited from ProblemDetails) |
Applies to
Feedback
Was this page helpful?
