共用方式為


ProblemDetailsFactory 類別

定義

生產 ProblemDetailsValidationProblemDetails的處理站。

public ref class ProblemDetailsFactory abstract
public abstract class ProblemDetailsFactory
type ProblemDetailsFactory = class
Public MustInherit Class ProblemDetailsFactory
繼承
ProblemDetailsFactory
衍生

建構函式

ProblemDetailsFactory()

生產 ProblemDetailsValidationProblemDetails的處理站。

方法

CreateProblemDetails(HttpContext, Nullable<Int32>, String, String, String, String)

建立 ProblemDetails 實例,根據 ApiBehaviorOptions中指定的值來設定預設值。

CreateValidationProblemDetails(HttpContext, ModelStateDictionary, Nullable<Int32>, String, String, String, String)

建立 ValidationProblemDetails 實例,根據 ApiBehaviorOptions中指定的值來設定預設值。

適用於