ControllerBase.ValidationProblem 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
ValidationProblem(ValidationProblemDetails) |
Status400BadRequest 응답을 생성하는 BadRequestObjectResult 만듭니다. |
ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary) |
ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다. |
ValidationProblem() |
ModelState유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다. |
ValidationProblem(ModelStateDictionary) |
|
ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>) |
ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다. |
- 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.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
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.Infrastructure.DefaultStatusCode(400)>]
[<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>]
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
매개 변수
- descriptor
- ValidationProblemDetails
반환
응답에 대해 만든 BadRequestObjectResult.
- 특성
적용 대상
- Source:
- ControllerBase.cs
ValidationProblemDetails 값을 사용하여 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
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]
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.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);
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
[<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>]
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 (detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, modelStateDictionary As ModelStateDictionary) As 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
매개 변수
- modelStateDictionary
- ModelStateDictionary
ModelStateDictionary.
null
ModelState사용하는 경우 .
반환
응답에 대해 만든 ActionResult.
- 특성
적용 대상
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
ModelState유효성 검사 오류가 있는 Status400BadRequest 응답을 생성하는 ActionResult 만듭니다.
public:
virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem();
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem();
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem () As ActionResult
반환
응답에 대해 만든 ActionResult.
- 특성
적용 대상
- 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.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
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.Infrastructure.DefaultStatusCode(400)>]
[<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>]
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
매개 변수
- modelStateDictionary
- ModelStateDictionary
반환
응답에 대해 만든 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
매개 변수
- modelStateDictionary
- ModelStateDictionary
ModelStateDictionary.
null
ModelState사용하는 경우 .
- extensions
- IDictionary<String,Object>
Extensions값입니다.
반환
응답에 대해 만든 ActionResult.
- 특성