The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MediaTypeMapping Constructor
Namespace:
System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
| Name | Description | |
|---|---|---|
![]() | MediaTypeMapping(MediaTypeHeaderValue^) | Initializes a new instance of a MediaTypeMapping with the given mediaType value. |
![]() | MediaTypeMapping(String^) | Initializes a new instance of a MediaTypeMapping with the given mediaType value. |
MediaTypeMapping Constructor (MediaTypeHeaderValue^)
Initializes a new instance of a MediaTypeMapping with the given mediaType value.
Parameters
- mediaType
-
Type:
System.Net.Http.Headers::MediaTypeHeaderValue^
The MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping.
MediaTypeMapping Constructor (String^)
Initializes a new instance of a MediaTypeMapping with the given mediaType value.
Parameters
- mediaType
-
Type:
System::String^
The String that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping.
Show:
