อ่านในภาษาอังกฤษ

แชร์ผ่าน


IApiDefaultResponseMetadataProvider Interface

Definition

Provides a return type for all HTTP status codes that are not covered by other IApiResponseMetadataProvider instances.

C#
public interface IApiDefaultResponseMetadataProvider : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Derived
Implements

Properties

StatusCode

Gets the HTTP status code of the response.

(Inherited from IApiResponseMetadataProvider)
Type

Gets the optimistic return type of the action.

(Inherited from IApiResponseMetadataProvider)

Methods

SetContentTypes(MediaTypeCollection)

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

(Inherited from IApiResponseMetadataProvider)

Applies to

ผลิตภัณฑ์ เวอร์ชัน
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0