ProducesDefaultResponseTypeAttribute ProducesDefaultResponseTypeAttribute ProducesDefaultResponseTypeAttribute ProducesDefaultResponseTypeAttribute Class

Definition

A filter that specifies the Type for all HTTP status codes that are not covered by ProducesResponseTypeAttribute.

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
type ProducesDefaultResponseTypeAttribute = class
    inherit Attribute
    interface IApiDefaultResponseMetadataProvider
    interface IApiResponseMetadataProvider
    interface IFilterMetadata
Public NotInheritable Class ProducesDefaultResponseTypeAttribute
Inherits Attribute
Implements IApiDefaultResponseMetadataProvider, IFilterMetadata
Inheritance
ProducesDefaultResponseTypeAttributeProducesDefaultResponseTypeAttributeProducesDefaultResponseTypeAttributeProducesDefaultResponseTypeAttribute
Attributes
Implements

Constructors

ProducesDefaultResponseTypeAttribute() ProducesDefaultResponseTypeAttribute() ProducesDefaultResponseTypeAttribute() ProducesDefaultResponseTypeAttribute()

Initializes an instance of ProducesResponseTypeAttribute.

ProducesDefaultResponseTypeAttribute(Type) ProducesDefaultResponseTypeAttribute(Type) ProducesDefaultResponseTypeAttribute(Type) ProducesDefaultResponseTypeAttribute(Type)

Initializes an instance of ProducesResponseTypeAttribute.

Properties

StatusCode StatusCode StatusCode StatusCode

Gets or sets the HTTP status code of the response.

Type Type Type Type

Gets or sets the type of the value returned by an action.

Explicit Interface Implementations

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Applies to