ProducesAttribute.ContentTypes Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera lub ustawia obsługiwane typy zawartości odpowiedzi. Służy do ustawiania .ContentTypes
public:
property Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ ContentTypes { Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ get(); void set(Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ value); };
public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get; set; }
member this.ContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection with get, set
Public Property ContentTypes As MediaTypeCollection