ProducesAttribute 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
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
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.