Results.ValidationProblem Método

Definición

Genera una Status400BadRequest respuesta con un HttpValidationProblemDetails valor .

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

Parámetros

errors
IDictionary<String,String[]>

Uno o varios errores de validación.

detail
String

Valor de Detail.

instance
String

Valor de Instance.

statusCode
Nullable<Int32>

Código de estado.

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

creado IResult para la respuesta.

Se aplica a