Export (0) Print
Expand All

XmlMediaTypeFormatter.UseXmlSerializer Property

Gets or sets a value indicating whether the XML formatter uses the XmlSerializer as the default serializer, instead of using the DataContractSerializer.

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

public bool UseXmlSerializer { get; set; }

Property Value

Type: System.Boolean
If true, the formatter uses the XmlSerializer by default; otherwise, it uses the DataContractSerializer by default.
Show:
© 2014 Microsoft