Aracılığıyla paylaş


ConsumesAttribute.ContentTypes Özellik

Tanım

Desteklenen istek içerik türlerini alır veya ayarlar. Aksi takdirde birden çok eşleşme olduğunda eylemi seçmek iç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

Özellik Değeri

Şunlara uygulanır