MediaRangeMapping Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Class that provides MediaTypeHeaderValues for a request or response from a media range.

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Net.Http.Formatting.MediaRangeMapping

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

Syntax

'Declaration
Public NotInheritable Class MediaRangeMapping _
    Inherits MediaTypeMapping
public sealed class MediaRangeMapping : MediaTypeMapping
public ref class MediaRangeMapping sealed : public MediaTypeMapping
[<Sealed>]
type MediaRangeMapping =  
    class
        inherit MediaTypeMapping
    end
public final class MediaRangeMapping extends MediaTypeMapping

The MediaRangeMapping type exposes the following members.

Constructors

  Name Description
Public method MediaRangeMapping(String, String) Initializes a new instance of the MediaRangeMapping class.
Public method MediaRangeMapping(MediaTypeHeaderValue, MediaTypeHeaderValue) Initializes a new instance of the MediaRangeMapping class.

Top

Properties

  Name Description
Public property MediaRange Gets the MediaTypeHeaderValue describing the known media range.
Public property MediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnTryMatchMediaType(HttpRequestMessage) Implemented in a derived class to determine if the HttpRequestMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Protected method OnTryMatchMediaType(HttpResponseMessage) Implemented in a derived class to determine if the HttpResponseMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryMatchMediaType(HttpRequestMessage) Returns the quality of the match of the MediaTypeHeaderValue associated with request. (Inherited from MediaTypeMapping.)
Public method TryMatchMediaType(HttpResponseMessage) Returns the quality of the match of the MediaTypeHeaderValue associated with response. (Inherited from MediaTypeMapping.)

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.

See Also

Reference

System.Net.Http.Formatting Namespace