IApiRequestMetadataProvider Interface

Definition

Provides a set of possible content types than can be consumed by the action.

C#
public interface IApiRequestMetadataProvider
C#
public interface IApiRequestMetadataProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Derived
Implements

Methods

SetContentTypes(MediaTypeCollection)

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

Applies to

Proizvod Verzije
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0