اقرأ باللغة الإنجليزية

مشاركة عبر


ValidationProblemDetails Class

Definition

A ProblemDetails for validation errors.

C#
public class ValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails
C#
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))]
public class ValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails
C#
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.AspNetCore.Mvc.Infrastructure.ValidationProblemDetailsJsonConverter))]
public class ValidationProblemDetails : Microsoft.AspNetCore.Http.HttpValidationProblemDetails
C#
public class ValidationProblemDetails : Microsoft.AspNetCore.Http.HttpValidationProblemDetails
Inheritance
ValidationProblemDetails
Inheritance
Attributes

Constructors

ValidationProblemDetails()

Initializes a new instance of ValidationProblemDetails.

ValidationProblemDetails(IDictionary<String,String[]>)

Initializes a new instance of ValidationProblemDetails using the specified errors.

ValidationProblemDetails(ModelStateDictionary)

Initializes a new instance of ValidationProblemDetails using the specified modelState.

Properties

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([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

(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[RFC7231], Section 3.4).

(Inherited from ProblemDetails)
Type

A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".

(Inherited from ProblemDetails)

Applies to

منتج الإصدارات
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0