Information
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)

NameDescription
System_CAPS_protmethodMediaTypeMapping(MediaTypeHeaderValue^)

Initializes a new instance of a MediaTypeMapping with the given mediaType value.

System_CAPS_protmethodMediaTypeMapping(String^)

Initializes a new instance of a MediaTypeMapping with the given mediaType value.

Return to top

MediaTypeMapping Constructor (MediaTypeHeaderValue^)

Initializes a new instance of a MediaTypeMapping with the given mediaType value.

protected:
MediaTypeMapping(
	MediaTypeHeaderValue^ mediaType
)

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.

Return to top

MediaTypeMapping Constructor (String^)

Initializes a new instance of a MediaTypeMapping with the given mediaType value.

protected:
MediaTypeMapping(
	String^ mediaType
)

Parameters

mediaType
Type: System::String^

The String that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping.

Return to top
Show: