Compartilhar via


TypedResults.ValidationProblem Método

Definição

Produz uma Status400BadRequest resposta com um 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[]>

Um ou mais erros de validação.

detail
String

O valor de Detail.

instance
String

O valor de Instance.

title
String

O valor de Title. O padrão é "Ocorreu um ou mais erros de validação".

type
String

O valor de Type.

extensions
IDictionary<String,Object>

O valor de Extensions.

Retornos

O criado ValidationProblem para a resposta.

Aplica-se a