Sdílet prostřednictvím


ConsumesAttribute Konstruktory

Definice

Přetížení

ConsumesAttribute(String, String[])

Vytvoří novou instanci položky ConsumesAttribute.

ConsumesAttribute(Type, String, String[])

Vytvoří novou instanci položky ConsumesAttribute.

ConsumesAttribute(String, String[])

Zdroj:
ConsumesAttribute.cs
Zdroj:
ConsumesAttribute.cs
Zdroj:
ConsumesAttribute.cs

Vytvoří novou instanci položky 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())

Parametry

contentType
String
otherContentTypes
String[]

Platí pro

ConsumesAttribute(Type, String, String[])

Zdroj:
ConsumesAttribute.cs

Vytvoří novou instanci položky 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())

Parametry

requestType
Type
contentType
String
otherContentTypes
String[]

Platí pro