ProducesResponseTypeAttribute 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.
Eylem tarafından döndürülen değer ve durum kodu türünü belirten bir filtre.
public ref class ProducesResponseTypeAttribute : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiResponseMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class ProducesResponseTypeAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type ProducesResponseTypeAttribute = class
inherit Attribute
interface IApiResponseMetadataProvider
interface IFilterMetadata
Public Class ProducesResponseTypeAttribute
Inherits Attribute
Implements IApiResponseMetadataProvider, IFilterMetadata
- Devralma
-
ProducesResponseTypeAttribute
- Öznitelikler
- Uygulamalar
Oluşturucular
| ProducesResponseTypeAttribute(Int32) |
Bir örneğini başlatır ProducesResponseTypeAttribute . |
| ProducesResponseTypeAttribute(Type, Int32) |
Bir örneğini başlatır ProducesResponseTypeAttribute . |
| ProducesResponseTypeAttribute(Type, Int32, String, String[]) |
Bir örneğini başlatır ProducesResponseTypeAttribute . |
Ö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 bir içerik türleri koleksiyonunu yapılandırır. |