Results.Problem 方法

定义

重载

Problem(ProblemDetails)

生成 ProblemDetails 响应。

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

生成 ProblemDetails 响应。

Problem(ProblemDetails)

Source:
Results.cs

生成 ProblemDetails 响应。

public static Microsoft.AspNetCore.Http.IResult Problem (Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails);
static member Problem : Microsoft.AspNetCore.Mvc.ProblemDetails -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Problem (problemDetails As ProblemDetails) As IResult

参数

problemDetails
ProblemDetails

ProblemDetails 从中生成响应的对象。

返回

为响应创建的 IResult

适用于

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

Source:
Results.cs

生成 ProblemDetails 响应。

public static Microsoft.AspNetCore.Http.IResult Problem (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 Problem : string * string * Nullable<int> * string * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Problem (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

参数

detail
String

的值 Detail

instance
String

的值 Instance

statusCode
Nullable<Int32>

的值 Status

title
String

的值 Title

type
String

的值 Type

extensions
IDictionary<String,Object>

的值 Extensions

返回

为响应创建的 IResult

适用于