Share via


ProducesResponseTypeMetadata(Int32, Type, String[]) Constructor

Definition

Initializes an instance of ProducesResponseTypeMetadata.

public ProducesResponseTypeMetadata (int statusCode, Type? type = default, string[]? contentTypes = default);
new Microsoft.AspNetCore.Http.ProducesResponseTypeMetadata : int * Type * string[] -> Microsoft.AspNetCore.Http.ProducesResponseTypeMetadata
Public Sub New (statusCode As Integer, Optional type As Type = Nothing, Optional contentTypes As String() = Nothing)

Parameters

statusCode
Int32

The HTTP response status code.

type
Type

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

contentTypes
String[]

Content types supported by the response.

Applies to