ProducesResponseTypeAttribute ProducesResponseTypeAttribute ProducesResponseTypeAttribute Constructors

Definition

Overloads

ProducesResponseTypeAttribute(Int32) ProducesResponseTypeAttribute(Int32) ProducesResponseTypeAttribute(Int32)

Initializes an instance of ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32) ProducesResponseTypeAttribute(Type, Int32)

Initializes an instance of ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32) ProducesResponseTypeAttribute(Int32) ProducesResponseTypeAttribute(Int32)

Initializes an instance of ProducesResponseTypeAttribute.

public ProducesResponseTypeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (statusCode As Integer)

Parameters

statusCode
Int32 Int32 Int32

The HTTP response status code.

ProducesResponseTypeAttribute(Type, Int32) ProducesResponseTypeAttribute(Type, Int32)

Initializes an instance of ProducesResponseTypeAttribute.

public ProducesResponseTypeAttribute (Type type, int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute

Parameters

type
Type Type Type

The Type of object that is going to be written in the response.

statusCode
Int32 Int32 Int32

The HTTP response status code.

Applies to