Export (0) Print
Expand All

MediaTypeMapping Class

An abstract base class used to create an association between HttpRequestMessage or HttpResponseMessage instances that have certain characteristics and a specific MediaTypeHeaderValue.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public abstract class MediaTypeMapping

The MediaTypeMapping type exposes the following members.

  NameDescription
Protected methodMediaTypeMapping(MediaTypeHeaderValue) Initializes a new instance of a MediaTypeMapping with the given mediaType value.
Protected methodMediaTypeMapping(String) Initializes a new instance of a MediaTypeMapping with the given mediaType value.
Top

  NameDescription
Public propertyMediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryMatchMediaType Returns the quality of the match of the MediaTypeHeaderValue associated with request.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft