Dela via


IApiResponseMetadataProvider Interface

Definition

Provides a return type, status code and a set of possible content types returned by a successful execution of the action.

public interface class IApiResponseMetadataProvider
public interface class IApiResponseMetadataProvider : Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
public interface IApiResponseMetadataProvider
public interface IApiResponseMetadataProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
type IApiResponseMetadataProvider = interface
type IApiResponseMetadataProvider = interface
    interface IFilterMetadata
Public Interface IApiResponseMetadataProvider
Public Interface IApiResponseMetadataProvider
Implements IFilterMetadata
Derived
Implements

Properties

StatusCode

Gets the HTTP status code of the response.

Type

Gets the optimistic return type of the action.

Methods

SetContentTypes(MediaTypeCollection)

Configures a collection of allowed content types which can be produced by the action.

Applies to