ProducesResponseTypeAttribute<T> Constructors
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.
Overloads
ProducesResponseTypeAttribute<T>(Int32) |
Initializes an instance of ProducesResponseTypeAttribute. |
ProducesResponseTypeAttribute<T>(Int32, String, String[]) |
Initializes an instance of ProducesResponseTypeAttribute. |
ProducesResponseTypeAttribute<T>(Int32)
Initializes an instance of ProducesResponseTypeAttribute.
public ProducesResponseTypeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer)
Parameters
- statusCode
- Int32
The HTTP response status code.
Applies to
ProducesResponseTypeAttribute<T>(Int32, String, String[])
Initializes an instance of ProducesResponseTypeAttribute.
public ProducesResponseTypeAttribute (int statusCode, string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int * string * string[] -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer, contentType As String, ParamArray additionalContentTypes As String())
Parameters
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for