Share via


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

'Declaration
Public Property UseXmlSerializer As Boolean 
    Get 
    Set
'Usage
Dim instance As XmlMediaTypeFormatter 
Dim value As Boolean 

value = instance.UseXmlSerializer

instance.UseXmlSerializer = value
public bool UseXmlSerializer { get; set; }
public:
property bool UseXmlSerializer {
    bool get ();
    void set (bool value);
}
member UseXmlSerializer : bool with get, set
function get UseXmlSerializer () : boolean 
function set UseXmlSerializer (value : boolean)

Property Value

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

See Also

Reference

XmlMediaTypeFormatter Class

System.Net.Http.Formatting Namespace