Share via


ProducesErrorResponseTypeAttribute(Type) Constructor

Definition

Initializes a new instance of 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)

Parameters

type
Type

The error type. Use Void to indicate the absence of a default error type.

Applies to