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)
Syntax
[DefaultValueAttribute(false)]
public bool UseXmlSerializer {
[CompilerGeneratedAttribute]
get;
[CompilerGeneratedAttribute]
set;
}
public:
[DefaultValueAttribute(false)]
property bool UseXmlSerializer {
[CompilerGeneratedAttribute]
bool get();
[CompilerGeneratedAttribute]
void set(bool value);
}
[<DefaultValueAttribute(false)>]
member UseXmlSerializer : bool with get, set
<DefaultValueAttribute(False)>
Public Property UseXmlSerializer As Boolean
Property Value
Type: System.Boolean
If true, the formatter uses the XmlSerializer by default; otherwise, it uses the DataContractSerializer by default.
See Also
XmlMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top