Compartir a través de


TypedResults.ValidationProblem Método

Definición

Genera una Status400BadRequest respuesta con un HttpValidationProblemDetails valor .

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

Parámetros

errors
IDictionary<String,String[]>

Uno o varios errores de validación.

detail
String

Valor de Detail.

instance
String

Valor de Instance.

title
String

Valor de Title. El valor predeterminado es "Se han producido uno o varios errores de validación".

type
String

Valor de Type.

extensions
IDictionary<String,Object>

Valor de Extensions.

Devoluciones

objeto creado ValidationProblem para la respuesta.

Se aplica a