次の方法で共有


DefaultProblemDetailsFactory.CreateValidationProblemDetails メソッド

定義

ApiBehaviorOptionsで指定された値に基づいて既定値を構成する ValidationProblemDetails インスタンスを作成します。

public override Microsoft.AspNetCore.Mvc.ValidationProblemDetails CreateValidationProblemDetails (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary, int? statusCode = default, string? title = default, string? type = default, string? detail = default, string? instance = default);
override this.CreateValidationProblemDetails : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * Nullable<int> * string * string * string * string -> Microsoft.AspNetCore.Mvc.ValidationProblemDetails
Public Overrides Function CreateValidationProblemDetails (httpContext As HttpContext, modelStateDictionary As ModelStateDictionary, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional detail As String = Nothing, Optional instance As String = Nothing) As ValidationProblemDetails

パラメーター

httpContext
HttpContext

HttpContext.

statusCode
Nullable<Int32>

Statusの値。

title
String

Titleの値。

type
String

Typeの値。

detail
String

Detailの値。

instance
String

Instanceの値。

戻り値

ValidationProblemDetails インスタンス。

適用対象