ProducesDefaultResponseTypeAttribute Sınıf
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.
tarafından ProducesResponseTypeAttributekapsanmayan Type tüm HTTP durum kodları için öğesini belirten bir filtre.
public ref class ProducesDefaultResponseTypeAttribute sealed : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiDefaultResponseMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ProducesDefaultResponseTypeAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDefaultResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ProducesDefaultResponseTypeAttribute = class
inherit Attribute
interface IApiDefaultResponseMetadataProvider
interface IApiResponseMetadataProvider
interface IFilterMetadata
Public NotInheritable Class ProducesDefaultResponseTypeAttribute
Inherits Attribute
Implements IApiDefaultResponseMetadataProvider, IFilterMetadata
- Devralma
-
ProducesDefaultResponseTypeAttribute
- Öznitelikler
- Uygulamalar
Oluşturucular
ProducesDefaultResponseTypeAttribute() |
bir örneğini ProducesResponseTypeAttributebaşlatır. |
ProducesDefaultResponseTypeAttribute(Type) |
bir örneğini ProducesResponseTypeAttributebaşlatır. |
Özellikler
StatusCode |
Yanıtın HTTP durum kodunu alır veya ayarlar. |
Type |
Bir eylem tarafından döndürülen değerin türünü alır veya ayarlar. |
Belirtik Arabirim Kullanımları
IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) |
eylem tarafından üretilebilen izin verilen içerik türlerinden oluşan bir koleksiyon yapılandırılır. |
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin