ProducesAttribute Constructors

Definition

Overloads

ProducesAttribute(Type)

Initializes an instance of ProducesAttribute.

ProducesAttribute(String, String[])

Initializes an instance of ProducesAttribute with allowed content types.

ProducesAttribute(Type)

Source:
ProducesAttribute.cs
Source:
ProducesAttribute.cs
Source:
ProducesAttribute.cs

Initializes an instance of ProducesAttribute.

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

Parameters

type
Type

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

Applies to

ProducesAttribute(String, String[])

Source:
ProducesAttribute.cs
Source:
ProducesAttribute.cs
Source:
ProducesAttribute.cs

Initializes an instance of ProducesAttribute with allowed content types.

public:
 ProducesAttribute(System::String ^ contentType, ... cli::array <System::String ^> ^ additionalContentTypes);
public ProducesAttribute (string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesAttribute : string * string[] -> Microsoft.AspNetCore.Mvc.ProducesAttribute
Public Sub New (contentType As String, ParamArray additionalContentTypes As String())

Parameters

contentType
String

The allowed content type for a response.

additionalContentTypes
String[]

Additional allowed content types for a response.

Applies to