Udostępnij za pośrednictwem


TypedResults.ValidationProblem Metoda

Definicja

Przeciążenia

ValidationProblem(IDictionary<String,String[]>, String, String, String, String, IDictionary<String,Object>)

Tworzy odpowiedź Status400BadRequest z wartością HttpValidationProblemDetails.

ValidationProblem(IEnumerable<KeyValuePair<String,String[]>>, String, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Tworzy odpowiedź Status400BadRequest z wartością HttpValidationProblemDetails.

ValidationProblem(IDictionary<String,String[]>, String, String, String, String, IDictionary<String,Object>)

Źródło:
TypedResults.cs

Tworzy odpowiedź Status400BadRequest z wartością HttpValidationProblemDetails.

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);
public static Microsoft.AspNetCore.Http.HttpResults.ValidationProblem ValidationProblem (System.Collections.Generic.IDictionary<string,string[]> errors, string? detail, string? instance, string? title, string? type, System.Collections.Generic.IDictionary<string,object?>? extensions);
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
Public Shared Function ValidationProblem (errors As IDictionary(Of String, String()), detail As String, instance As String, title As String, type As String, extensions As IDictionary(Of String, Object)) As ValidationProblem

Parametry

errors
IDictionary<String,String[]>

Co najmniej jeden błąd weryfikacji.

detail
String

Wartość Detail.

instance
String

Wartość Instance.

title
String

Wartość Title. Wartości domyślne to "Wystąpił co najmniej jeden błąd weryfikacji".

type
String

Wartość Type.

extensions
IDictionary<String,Object>

Wartość Extensions.

Zwraca

Utworzona ValidationProblem odpowiedzi.

Dotyczy

ValidationProblem(IEnumerable<KeyValuePair<String,String[]>>, String, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Tworzy odpowiedź Status400BadRequest z wartością HttpValidationProblemDetails.

public static Microsoft.AspNetCore.Http.HttpResults.ValidationProblem ValidationProblem (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string[]>> errors, string? detail = default, string? instance = default, string? title = default, string? type = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? extensions = default);
static member ValidationProblem : seq<System.Collections.Generic.KeyValuePair<string, string[]>> * string * string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.AspNetCore.Http.HttpResults.ValidationProblem
Public Shared Function ValidationProblem (errors As IEnumerable(Of KeyValuePair(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 IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As ValidationProblem

Parametry

errors
IEnumerable<KeyValuePair<String,String[]>>

Co najmniej jeden błąd weryfikacji.

detail
String

Wartość Detail.

instance
String

Wartość Instance.

title
String

Wartość Title. Wartości domyślne to "Wystąpił co najmniej jeden błąd weryfikacji".

type
String

Wartość Type.

extensions
IEnumerable<KeyValuePair<String,Object>>

Wartość Extensions.

Zwraca

Utworzona ValidationProblem odpowiedzi.

Dotyczy