TypedResults.ValidationProblem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
参数
- errors
- IDictionary<String,String[]>
一个或多个验证错误。
- extensions
- IDictionary<String,Object>
的值 Extensions。
返回
为响应创建的 ValidationProblem 。