Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

ValidationProblemDetails Class

Definition

Namespace:
Microsoft.AspNetCore.Mvc
Assembly:
Microsoft.AspNetCore.Mvc.Core.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0-preview.5.25277.114
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.6
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.0
Package:
Microsoft.AspNetCore.App.Ref v9.0.2
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.

AProblemDetails 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 ValidationProblemDetailsInherits HttpValidationProblemDetails
Public Class ValidationProblemDetailsInherits ProblemDetails
Inheritance
Inheritance
ValidationProblemDetails
Attributes

Constructors

ValidationProblemDetails()

Initializes a new instance ofValidationProblemDetails.

ValidationProblemDetails(IDictionary<String,String[]>)

Initializes a new instance ofValidationProblemDetails using the specifiederrors.

ValidationProblemDetails(ModelStateDictionary)

Initializes a new instance ofValidationProblemDetails using the specifiedmodelState.

Properties

Detail

A human-readable explanation specific to this occurrence of the problem.

(Inherited fromProblemDetails)
Errors

Gets the validation errors associated with this instance ofHttpValidationProblemDetails.

Extensions

Gets theIDictionary<TKey,TValue> for extension members.

Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace asother members of a problem type.

(Inherited fromProblemDetails)
Instance

A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

(Inherited fromProblemDetails)
Status

The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

(Inherited fromProblemDetails)
Title

A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrenceof the problem, except for purposes of localization(e.g., using proactive content negotiation;see[RFC7231], Section 3.4).

(Inherited fromProblemDetails)
Type

A URI reference [RFC3986] that identifies the problem type. This specification encourages that, whendereferenced, 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 fromProblemDetails)

Applies to


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo