次の方法で共有


Results.ValidationProblem メソッド

定義

オーバーロード

ValidationProblem(IDictionary<String,String[]>, String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

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

ValidationProblem(IEnumerable<KeyValuePair<String,String[]>>, String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String, Object>>)

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

ValidationProblem(IDictionary<String,String[]>, String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

ソース:
Results.cs

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

public static Microsoft.AspNetCore.Http.IResult ValidationProblem (System.Collections.Generic.IDictionary<string,string[]> errors, string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);
public static Microsoft.AspNetCore.Http.IResult ValidationProblem (System.Collections.Generic.IDictionary<string,string[]> errors, string? detail, string? instance, int? statusCode, string? title, string? type, System.Collections.Generic.IDictionary<string,object?>? extensions);
static member ValidationProblem : System.Collections.Generic.IDictionary<string, string[]> * string * string * Nullable<int> * string * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Http.IResult
Public Shared Function ValidationProblem (errors As IDictionary(Of String, String()), 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 extensions As IDictionary(Of String, Object) = Nothing) As IResult
Public Shared Function ValidationProblem (errors As IDictionary(Of String, String()), detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, extensions As IDictionary(Of String, Object)) As IResult

パラメーター

errors
IDictionary<String,String[]>

1 つ以上の検証エラー。

detail
String

Detailの値。

instance
String

Instanceの値。

statusCode
Nullable<Int32>

状態コード。

title
String

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

type
String

Typeの値。

extensions
IDictionary<String,Object>

Extensionsの値。

戻り値

応答用に作成された IResult

適用対象

ValidationProblem(IEnumerable<KeyValuePair<String,String[]>>, String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String, Object>>)

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

public static Microsoft.AspNetCore.Http.IResult ValidationProblem (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string[]>> errors, string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? extensions = default);
static member ValidationProblem : seq<System.Collections.Generic.KeyValuePair<string, string[]>> * string * string * Nullable<int> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.AspNetCore.Http.IResult
Public Shared Function ValidationProblem (errors As IEnumerable(Of KeyValuePair(Of String, String())), 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 extensions As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As IResult

パラメーター

errors
IEnumerable<KeyValuePair<String,String[]>>

1 つ以上の検証エラー。

detail
String

Detailの値。

instance
String

Instanceの値。

statusCode
Nullable<Int32>

状態コード。

title
String

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

type
String

Typeの値。

戻り値

応答用に作成された IResult

適用対象