TypedResults.Problem 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Problem(ProblemDetails) |
ProblemDetails產生回應。 |
Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>) |
ProblemDetails產生回應。 |
Problem(ProblemDetails)
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>)
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
參數
- extensions
- IDictionary<String,Object>
的值 Extensions 。
傳回
為回應建立 ProblemHttpResult 的 。