FormatterMappings 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于指定 URL 格式与相应媒体类型之间的映射。
public ref class FormatterMappingspublic class FormatterMappingstype FormatterMappings = classPublic Class FormatterMappings- 继承
- 
				FormatterMappings
构造函数
| FormatterMappings() | 用于指定 URL 格式与相应媒体类型之间的映射。 | 
方法
| ClearMediaTypeMappingForFormat(String) | 清除格式的媒体类型映射。 | 
| GetMediaTypeMappingForFormat(String) | 获取指定格式的媒体类型。 | 
| SetMediaTypeMappingForFormat(String, MediaTypeHeaderValue) | 将格式的映射设置为指定的媒体类型。 如果格式已存在,则将使用新值覆盖媒体类型。 | 
| SetMediaTypeMappingForFormat(String, String) | 将格式的映射设置为指定的媒体类型。 如果格式已存在,则将使用新值覆盖媒体类型。 |