ProducesResponseTypeMetadata(Int32, Type, String[]) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- contentTypes
- String[]
Content types supported by the response.