Partilhar via


DefaultProblemDetailsFactory Construtor

Definição

Inicializa uma nova instância da classe 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)

Parâmetros

options
IOptions<ApiBehaviorOptions>

As opções para o comportamento da API.

problemDetailsOptions
IOptions<ProblemDetailsOptions>

As opções para personalizar detalhes do problema.

Aplica-se a