ProducesAttribute.ContentTypes Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Desteklenen yanıt içerik türlerini alır veya ayarlar. ayarlamak ContentTypesiçin kullanılır.
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