다음을 통해 공유


ControllerBase.ValidationProblem 메서드

정의

오버로드

ValidationProblem(ValidationProblemDetails)

Status400BadRequest 응답을 생성하는 BadRequestObjectResult 만듭니다.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

ValidationProblem()

ModelState유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

ValidationProblem(ModelStateDictionary)

modelStateDictionary유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

ValidationProblem(ValidationProblemDetails)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Status400BadRequest 응답을 생성하는 BadRequestObjectResult 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem(Microsoft::AspNetCore::Mvc::ValidationProblemDetails ^ descriptor);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (descriptor As ValidationProblemDetails) As ActionResult

매개 변수

반환

응답에 대해 만든 BadRequestObjectResult.

특성

적용 대상

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

Source:
ControllerBase.cs

ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string detail = default, string instance = default, int? statusCode = default, string title = default, string type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail, string? instance, int? statusCode, string? title, string? type, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional modelStateDictionary As ModelStateDictionary = Nothing) As ActionResult
Public Overridable Function ValidationProblem (detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, modelStateDictionary As ModelStateDictionary) As ActionResult

매개 변수

detail
String

Detail값입니다.

instance
String

Instance값입니다.

statusCode
Nullable<Int32>

상태 코드입니다.

title
String

Title값입니다.

type
String

Type값입니다.

modelStateDictionary
ModelStateDictionary

ModelStateDictionary. null ModelState사용하는 경우 .

반환

응답에 대해 만든 ActionResult.

특성

적용 대상

ValidationProblem()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

ModelState유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem ();
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem () As ActionResult

반환

응답에 대해 만든 ActionResult.

특성

적용 대상

ValidationProblem(ModelStateDictionary)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

modelStateDictionary유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelStateDictionary);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (modelStateDictionary As ModelStateDictionary) As ActionResult

매개 변수

반환

응답에 대해 만든 BadRequestObjectResult.

특성

적용 대상

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.

[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional modelStateDictionary As ModelStateDictionary = Nothing, Optional extensions As IDictionary(Of String, Object) = Nothing) As ActionResult

매개 변수

detail
String

Detail값입니다.

instance
String

Instance값입니다.

statusCode
Nullable<Int32>

상태 코드입니다.

title
String

Title값입니다.

type
String

Type값입니다.

modelStateDictionary
ModelStateDictionary

ModelStateDictionary. null ModelState사용하는 경우 .

extensions
IDictionary<String,Object>

Extensions값입니다.

반환

응답에 대해 만든 ActionResult.

특성

적용 대상