Share via


FormatterMappings Class

Definition

Used to specify mapping between the URL Format and corresponding media type.

public ref class FormatterMappings
public class FormatterMappings
type FormatterMappings = class
Public Class FormatterMappings
Inheritance
FormatterMappings

Constructors

FormatterMappings()

Methods

ClearMediaTypeMappingForFormat(String)

Clears the media type mapping for the format.

GetMediaTypeMappingForFormat(String)

Gets the media type for the specified format.

SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue)

Sets mapping for the format to specified media type. If the format already exists, the media type will be overwritten with the new value.

SetMediaTypeMappingForFormat(String, String)

Sets mapping for the format to specified media type. If the format already exists, the media type will be overwritten with the new value.

Applies to