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 指示缺少默认错误类型。

适用于