次の方法で共有


TypedResults.ValidationProblem メソッド

定義

値を持 Status400BadRequest つ応答を HttpValidationProblemDetails 生成します。

public static Microsoft.AspNetCore.Http.HttpResults.ValidationProblem ValidationProblem (System.Collections.Generic.IDictionary<string,string[]> errors, string? detail = default, string? instance = default, string? title = default, string? type = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);
static member ValidationProblem : System.Collections.Generic.IDictionary<string, string[]> * string * string * string * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Http.HttpResults.ValidationProblem
Public Shared Function ValidationProblem (errors As IDictionary(Of String, String()), Optional detail As String = Nothing, Optional instance As String = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional extensions As IDictionary(Of String, Object) = Nothing) As ValidationProblem

パラメーター

errors
IDictionary<String,String[]>

1 つ以上の検証エラー。

detail
String

Detail値。

instance
String

Instance値。

title
String

Title値。 既定値は "1 つ以上の検証エラーが発生しました" です。

type
String

Type値。

extensions
IDictionary<String,Object>

Extensions値。

戻り値

応答用に作成された ValidationProblem

適用対象