ConsumesAttribute 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
ConsumesAttribute(String, String[]) |
Creates a new instance of ConsumesAttribute. <param name="contentType">The request content type.</param><param name="otherContentTypes">The additional list of allowed request content types.</param> |
ConsumesAttribute(Type, String, String[]) |
Creates a new instance of ConsumesAttribute. <param name="requestType">The type being read from the request.</param><param name="contentType">The request content type.</param><param name="otherContentTypes">The additional list of allowed request content types.</param> |
ConsumesAttribute(String, String[])
- Source:
- ConsumesAttribute.cs
- Source:
- ConsumesAttribute.cs
- Source:
- ConsumesAttribute.cs
Creates a new instance of ConsumesAttribute.
<param name="contentType">The request content type.</param><param name="otherContentTypes">The additional list of allowed request content types.</param>public:
ConsumesAttribute(System::String ^ contentType, ... cli::array <System::String ^> ^ otherContentTypes);
public ConsumesAttribute(string contentType, params string[] otherContentTypes);
new Microsoft.AspNetCore.Mvc.ConsumesAttribute : string * string[] -> Microsoft.AspNetCore.Mvc.ConsumesAttribute
Public Sub New (contentType As String, ParamArray otherContentTypes As String())
Parameters
- contentType
- String
- otherContentTypes
- String[]
Applies to
ConsumesAttribute(Type, String, String[])
- Source:
- ConsumesAttribute.cs
Creates a new instance of ConsumesAttribute.
<param name="requestType">The type being read from the request.</param><param name="contentType">The request content type.</param><param name="otherContentTypes">The additional list of allowed request content types.</param>public ConsumesAttribute(Type requestType, string contentType, params string[] otherContentTypes);
new Microsoft.AspNetCore.Mvc.ConsumesAttribute : Type * string * string[] -> Microsoft.AspNetCore.Mvc.ConsumesAttribute
Public Sub New (requestType As Type, contentType As String, ParamArray otherContentTypes As String())
Parameters
- requestType
- Type
- contentType
- String
- otherContentTypes
- String[]