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 | |
|---|---|---|
![]() |
MediaRangeMapping(String, String) | Initializes a new instance of the MediaRangeMapping class. |
![]() |
MediaRangeMapping(MediaTypeHeaderValue, MediaTypeHeaderValue) | Initializes a new instance of the MediaRangeMapping class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
MediaRange | Gets the MediaTypeHeaderValue describing the known media range. |
![]() |
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 | |
|---|---|---|
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnTryMatchMediaType(HttpRequestMessage) | Implemented in a derived class to determine if the HttpRequestMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.) |
![]() |
OnTryMatchMediaType(HttpResponseMessage) | Implemented in a derived class to determine if the HttpResponseMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping. (Inherited from MediaTypeMapping.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
TryMatchMediaType(HttpRequestMessage) | Returns the quality of the match of the MediaTypeHeaderValue associated with request. (Inherited from MediaTypeMapping.) |
![]() |
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.
.gif)
.gif)
.gif)