ProducesResponseTypeAttribute Constructors

Definition

Overloads

ProducesResponseTypeAttribute(Int32)

Initializes an instance of ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Initializes an instance of ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Initializes an instance of ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

Source:
ProducesResponseTypeAttribute.cs
Source:
ProducesResponseTypeAttribute.cs

Initializes an instance of ProducesResponseTypeAttribute.

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

Parameters

statusCode
Int32

The HTTP response status code.

Applies to

ProducesResponseTypeAttribute(Type, Int32)

Source:
ProducesResponseTypeAttribute.cs
Source:
ProducesResponseTypeAttribute.cs

Initializes an instance of ProducesResponseTypeAttribute.

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

Parameters

type
Type

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

statusCode
Int32

The HTTP response status code.

Applies to

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Initializes an instance of ProducesResponseTypeAttribute.

public ProducesResponseTypeAttribute (Type type, int statusCode, string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int * string * string[] -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (type As Type, statusCode As Integer, contentType As String, ParamArray additionalContentTypes As String())

Parameters

type
Type

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

statusCode
Int32

The HTTP response status code.

contentType
String

The content type associated with the response.

additionalContentTypes
String[]

Additional content types supported by the response.

Applies to