An abstract base class used to create an association between HttpRequestMessage or HttpResponseMessage instances that have certain characteristics and a specific MediaTypeHeaderValue.
Inheritance Hierarchy
System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Net.Http.Formatting.QueryStringMapping
    System.Net.Http.Formatting.RequestHeaderMapping
    System.Net.Http.Formatting.UriPathExtensionMapping
Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public MustInherit Class MediaTypeMapping
'Usage
Dim instance As MediaTypeMapping
public abstract class MediaTypeMapping
public ref class MediaTypeMapping abstract
[<AbstractClassAttribute>]
type MediaTypeMapping =  class end
public abstract class MediaTypeMapping
The MediaTypeMapping type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | MediaTypeMapping(MediaTypeHeaderValue) | Initializes a new instance of a MediaTypeMapping with the given mediaType value. | 
| .jpeg) | MediaTypeMapping(String) | Initializes a new instance of a MediaTypeMapping with the given mediaType value. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | MediaType | Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
| .jpeg) | TryMatchMediaType | Returns the quality of the match of the MediaTypeHeaderValue associated with request. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.