Condividi tramite


ProducesDefaultResponseTypeAttribute.IApiResponseMetadataProvider.SetContentTypes Metodo

Definizione

Configura una raccolta di tipi di contenuto consentiti che possono essere prodotti dall'azione.

 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

Parametri

contentTypes
MediaTypeCollection

Implementazioni

Si applica a