ConsumesAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConsumesAttribute(String, String[]) |
创建 ConsumesAttribute 的新实例。 |
ConsumesAttribute(Type, String, String[]) |
创建 ConsumesAttribute 的新实例。 |
ConsumesAttribute(String, String[])
- Source:
- ConsumesAttribute.cs
- Source:
- ConsumesAttribute.cs
- Source:
- ConsumesAttribute.cs
创建 ConsumesAttribute 的新实例。
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())
参数
- contentType
- String
- otherContentTypes
- String[]
适用于
ConsumesAttribute(Type, String, String[])
- Source:
- ConsumesAttribute.cs
创建 ConsumesAttribute 的新实例。
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())
参数
- requestType
- Type
- contentType
- String
- otherContentTypes
- String[]