IApiRequestMetadataProvider.SetContentTypes(MediaTypeCollection) Method

Definition

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

public:
 void SetContentTypes(Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ contentTypes);
public void SetContentTypes (Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes);
abstract member SetContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection -> unit
Public Sub SetContentTypes (contentTypes As MediaTypeCollection)

Parameters

Applies to