DefaultMediaType Property
Collapse the table of content
Expand the table of content

XmlMediaTypeFormatter.DefaultMediaType Property

 

Gets the default media type for the XML formatter.

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

public static MediaTypeHeaderValue DefaultMediaType { get; }

Property Value

Type: System.Net.Http.Headers.MediaTypeHeaderValue

The default media type, which is “application/xml”.

Return to top
Show:
© 2016 Microsoft