ProducesDefaultResponseTypeAttribute.IApiResponseMetadataProvider.SetContentTypes Méthode

Définition

Configure une collection de types de contenu autorisés qui peuvent être générés par l’action.

 virtual void Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes(Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ contentTypes) = Microsoft::AspNetCore::Mvc::ApiExplorer::IApiResponseMetadataProvider::SetContentTypes;
void IApiResponseMetadataProvider.SetContentTypes (Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes);
abstract member Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection -> unit
override this.Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection -> unit
Sub SetContentTypes (contentTypes As MediaTypeCollection) Implements IApiResponseMetadataProvider.SetContentTypes

Paramètres

contentTypes
MediaTypeCollection

Implémente

S’applique à