다음을 통해 공유


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 인스턴스입니다.

적용 대상