Share via


ProducesErrorResponseTypeAttribute(Type) 建構函式

定義

初始化 ProducesErrorResponseTypeAttribute 的新執行個體。

public:
 ProducesErrorResponseTypeAttribute(Type ^ type);
public ProducesErrorResponseTypeAttribute (Type type);
new Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute
Public Sub New (type As Type)

參數

type
Type

錯誤類型。 使用 Void 表示沒有預設錯誤類型。

適用於