Bagikan melalui


Results.ValidationProblem Metode

Definisi

Status400BadRequest Menghasilkan respons dengan HttpValidationProblemDetails nilai.

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);
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

Parameter

errors
IDictionary<String,String[]>

Satu atau beberapa kesalahan validasi.

detail
String

Nilai untuk Detail.

instance
String

Nilai untuk Instance.

statusCode
Nullable<Int32>

Kode status.

title
String

Nilai untuk Title. Default ke "Terjadi satu atau beberapa kesalahan validasi."

type
String

Nilai untuk Type.

extensions
IDictionary<String,Object>

Nilai untuk Extensions.

Mengembalikan

yang dibuat IResult untuk respons.

Berlaku untuk