Bagikan melalui


ProducesResponseTypeAttribute<T> Kelas

Definisi

Filter yang menentukan jenis nilai dan kode status yang dikembalikan oleh tindakan.

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

Jenis parameter

T

Objek Type yang akan ditulis dalam respons.

Warisan
ProducesResponseTypeAttribute<T>

Konstruktor

ProducesResponseTypeAttribute<T>(Int32)

Menginisialisasi instans ProducesResponseTypeAttribute.

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

Menginisialisasi instans ProducesResponseTypeAttribute.

Properti

StatusCode

Mendapatkan atau mengatur kode status HTTP respons.

(Diperoleh dari ProducesResponseTypeAttribute)
Type

Mendapatkan atau mengatur jenis nilai yang dikembalikan oleh tindakan.

(Diperoleh dari ProducesResponseTypeAttribute)

Implementasi Antarmuka Eksplisit

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Mengonfigurasi kumpulan tipe konten yang diizinkan yang dapat dihasilkan oleh tindakan.

(Diperoleh dari ProducesResponseTypeAttribute)

Berlaku untuk