Condividi tramite


TypedResults.ValidationProblem Metodo

Definizione

Genera una Status400BadRequest risposta con un HttpValidationProblemDetails valore.

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

Parametri

errors
IDictionary<String,String[]>

Uno o più errori di convalida.

detail
String

Valore per Detail.

instance
String

Valore per Instance.

title
String

Valore per Title. Il valore predefinito è "Si sono verificati uno o più errori di convalida".

type
String

Valore per Type.

extensions
IDictionary<String,Object>

Valore per Extensions.

Restituisce

Oggetto creato ValidationProblem per la risposta.

Si applica a