DefaultProblemDetailsFactory 构造函数

定义

初始化 DefaultProblemDetailsFactory 类的新实例。

public DefaultProblemDetailsFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.ApiBehaviorOptions> options, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.ProblemDetailsOptions>? problemDetailsOptions = default);
new Microsoft.AspNetCore.Mvc.Infrastructure.DefaultProblemDetailsFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.ApiBehaviorOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.ProblemDetailsOptions> -> Microsoft.AspNetCore.Mvc.Infrastructure.DefaultProblemDetailsFactory
Public Sub New (options As IOptions(Of ApiBehaviorOptions), Optional problemDetailsOptions As IOptions(Of ProblemDetailsOptions) = Nothing)

参数

options
IOptions<ApiBehaviorOptions>

API 行为的选项。

problemDetailsOptions
IOptions<ProblemDetailsOptions>

自定义问题详细信息的选项。

适用于