ProblemDetailsFactory 类

定义

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中指定的值配置默认值。

适用于