Aracılığıyla paylaş


ProducesResponseTypeMetadata Sınıf

Tanım

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

public sealed class ProducesResponseTypeMetadata : Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata
type ProducesResponseTypeMetadata = class
    interface IProducesResponseTypeMetadata
Public NotInheritable Class ProducesResponseTypeMetadata
Implements IProducesResponseTypeMetadata
Devralma
ProducesResponseTypeMetadata
Uygulamalar

Oluşturucular

ProducesResponseTypeMetadata(Int32, Type, String[])

bir örneğini ProducesResponseTypeMetadatabaşlatır.

Özellikler

ContentTypes

Yanıtla ilişkili içerik türlerini alır veya ayarlar.

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.

Yöntemler

ToString()

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

Şunlara uygulanır