共用方式為


Results.ValidationProblem 方法

定義

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

參數

errors
IDictionary<String,String[]>

一或多個驗證錯誤。

detail
String

的值 Detail

instance
String

的值 Instance

statusCode
Nullable<Int32>

狀態碼。

title
String

的值 Title 。 預設為「發生一或多個驗證錯誤」。

type
String

的值 Type

extensions
IDictionary<String,Object>

的值 Extensions

傳回

為回應建立 IResult 的 。

適用於