Freigeben über


DefaultProblemDetailsFactory Konstruktor

Definition

Initialisiert eine neue Instanz der DefaultProblemDetailsFactory Klasse.

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)

Parameter

options
IOptions<ApiBehaviorOptions>

Die Optionen für das API-Verhalten.

problemDetailsOptions
IOptions<ProblemDetailsOptions>

Die Optionen zum Anpassen von Problemdetails.

Gilt für: