Freigeben über


ApiConventionApplicationModelConvention Konstruktor

Definition

Initialisiert eine neue Instanz von ApiConventionApplicationModelConvention.

public:
 ApiConventionApplicationModelConvention(Microsoft::AspNetCore::Mvc::ProducesErrorResponseTypeAttribute ^ defaultErrorResponseType);
public ApiConventionApplicationModelConvention (Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute defaultErrorResponseType);
new Microsoft.AspNetCore.Mvc.ApplicationModels.ApiConventionApplicationModelConvention : Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute -> Microsoft.AspNetCore.Mvc.ApplicationModels.ApiConventionApplicationModelConvention
Public Sub New (defaultErrorResponseType As ProducesErrorResponseTypeAttribute)

Parameter

defaultErrorResponseType
ProducesErrorResponseTypeAttribute

Der zu verwendende Fehlertyp. Wird verwendet Void , wenn kein Standardfehlertyp abgeleitet werden soll.

Gilt für: