Bagikan melalui


ApiConventionApplicationModelConvention Konstruktor

Definisi

Menginisialisasi instans ApiConventionApplicationModelConventionbaru .

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

Jenis kesalahan yang akan digunakan. Gunakan Void ketika tidak ada jenis kesalahan default yang akan disimpulkan.

Berlaku untuk