共用方式為


TypedResults.Problem 方法

定義

多載

Problem(ProblemDetails)

ProblemDetails產生回應。

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

ProblemDetails產生回應。

Problem(ProblemDetails)

來源:
TypedResults.cs

ProblemDetails產生回應。

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

參數

problemDetails
ProblemDetails

ProblemDetails 從中產生回應的物件。

傳回

為回應建立 ProblemHttpResult 的 。

適用於

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

來源:
TypedResults.cs

ProblemDetails產生回應。

public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult 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.HttpResults.ProblemHttpResult
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 ProblemHttpResult

參數

detail
String

的值 Detail

instance
String

的值 Instance

statusCode
Nullable<Int32>

的值 Status

title
String

的值 Title

type
String

的值 Type

extensions
IDictionary<String,Object>

的值 Extensions

傳回

為回應建立 ProblemHttpResult 的 。

適用於