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.

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)

public sealed class MediaRangeMapping : MediaTypeMapping

The MediaRangeMapping type exposes the following members.

  NameDescription
Public methodMediaRangeMapping(String, String) Initializes a new instance of the MediaRangeMapping class.
Public methodMediaRangeMapping(MediaTypeHeaderValue, MediaTypeHeaderValue) Initializes a new instance of the MediaRangeMapping class.
Top

  NameDescription
Public propertyMediaRange Gets the MediaTypeHeaderValue describing the known media range.
Public propertyMediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnTryMatchMediaType(HttpRequestMessage) Implemented in a derived class to determine if the HttpRequestMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Protected methodOnTryMatchMediaType(HttpResponseMessage) Implemented in a derived class to determine if the HttpResponseMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryMatchMediaType(HttpRequestMessage) Returns the quality of the match of the MediaTypeHeaderValue associated with request. (Inherited from MediaTypeMapping.)
Public methodTryMatchMediaType(HttpResponseMessage) Returns the quality of the match of the MediaTypeHeaderValue associated with response. (Inherited from MediaTypeMapping.)
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: