MediaTypeMapping Constructor
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
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. |
See Also
MediaTypeMapping Class
System.Net.Http.Formatting Namespace
Return to top
MediaTypeMapping Constructor (MediaTypeHeaderValue)
Initializes a new instance of a MediaTypeMapping with the given mediaType value.
Syntax
protected MediaTypeMapping(
MediaTypeHeaderValue mediaType
)
protected:
MediaTypeMapping(
MediaTypeHeaderValue^ mediaType
)
new :
mediaType:MediaTypeHeaderValue -> MediaTypeMapping
Protected Sub New (
mediaType As MediaTypeHeaderValue
)
Parameters
mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValueThe 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.
Syntax
protected MediaTypeMapping(
string mediaType
)
protected:
MediaTypeMapping(
String^ mediaType
)
new :
mediaType:string -> MediaTypeMapping
Protected Sub New (
mediaType As String
)
Parameters
mediaType
Type: System.StringThe String that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping.
Return to top