MediaTypeMapping Constructor

 

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Overload List

Name Description
System_CAPS_protmethod MediaTypeMapping(MediaTypeHeaderValue)

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

System_CAPS_protmethod 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

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

Return to top