Aracılığıyla paylaş


ProducesResponseTypeAttribute<T> Sınıf

Tanım

Eylem tarafından döndürülen değer ve durum kodunun türünü belirten bir filtre.

public class ProducesResponseTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
type ProducesResponseTypeAttribute<'T> = class
    inherit ProducesResponseTypeAttribute
Public Class ProducesResponseTypeAttribute(Of T)
Inherits ProducesResponseTypeAttribute

Tür Parametreleri

T

Yanıtta Type yazılacak nesnenin.

Devralma
ProducesResponseTypeAttribute<T>

Oluşturucular

ProducesResponseTypeAttribute<T>(Int32)

bir örneğini ProducesResponseTypeAttributebaşlatır.

ProducesResponseTypeAttribute<T>(Int32, String, String[])

bir örneğini ProducesResponseTypeAttributebaşlatır.

Özellikler

StatusCode

Yanıtın HTTP durum kodunu alır veya ayarlar.

(Devralındığı yer: ProducesResponseTypeAttribute)
Type

Bir eylem tarafından döndürülen değerin türünü alır veya ayarlar.

(Devralındığı yer: ProducesResponseTypeAttribute)

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.

(Devralındığı yer: ProducesResponseTypeAttribute)

Şunlara uygulanır