IApiResponseFormatMetadataProvider Interface¶
Summary¶
Provides metadata information about the response format to an <c>IApiDescriptionProvider</c>.
Methods¶
-
GetSupportedContentTypes
(System.Type, System.Type, MediaTypeHeaderValue)¶ Gets a filtered list of content types which are supported by the [Microsoft.AspNet.Mvc.IOutputFormatter]() for the <paramref name=”declaredType” /> and <paramref name=”contentType” />.
Arguments: - declaredType (System.Type) – The declared type for which the supported content types are desired.
- runtimeType (System.Type) – The runtime type for which the supported content types are desired.
- contentType (MediaTypeHeaderValue) – The content type for which the supported content types are desired, or <c>null</c> if any content type can be used.
Return type: System.Collections.Generic.IReadOnlyList{MediaTypeHeaderValue}
Returns: Content types which are supported by the [Microsoft.AspNet.Mvc.IOutputFormatter]().
IReadOnlyList<MediaTypeHeaderValue> GetSupportedContentTypes(Type declaredType, Type runtimeType, MediaTypeHeaderValue contentType)
-