Sdílet prostřednictvím


Results.ValidationProblem Metoda

Definice

Status400BadRequest Vytvoří odpověď s HttpValidationProblemDetails hodnotou.

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

Parametry

errors
IDictionary<String,String[]>

Jedna nebo více chyb ověřování.

detail
String

Hodnota pro Detail.

instance
String

Hodnota pro Instance.

statusCode
Nullable<Int32>

Stavový kód.

title
String

Hodnota pro Title. Výchozí hodnota je "Došlo k jedné nebo více chybám ověřování".

type
String

Hodnota pro Type.

extensions
IDictionary<String,Object>

Hodnota pro Extensions.

Návraty

Vytvořený IResult pro odpověď.

Platí pro