Share via


ConsumesAttribute Construtores

Definição

Sobrecargas

ConsumesAttribute(String, String[])

Cria uma nova instância de ConsumesAttribute.

ConsumesAttribute(Type, String, String[])

Cria uma nova instância de ConsumesAttribute.

ConsumesAttribute(String, String[])

Origem:
ConsumesAttribute.cs
Origem:
ConsumesAttribute.cs

Cria uma nova instância de 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())

Parâmetros

contentType
String
otherContentTypes
String[]

Aplica-se a

ConsumesAttribute(Type, String, String[])

Cria uma nova instância de 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())

Parâmetros

requestType
Type
contentType
String
otherContentTypes
String[]

Aplica-se a