DefaultProblemDetailsFactory 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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>
自定义问题详细信息的选项。