This topic has not yet been rated - Rate this topic

XmlSerializerFormatAttribute.SupportFaults Property

Gets or sets a value that indicates that the XmlSerializer should be used for reading and writing faults.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public bool SupportFaults { get; set; }

Property Value

Type: System.Boolean
true if the XmlSerializer should be used for reading and writing faults; false if the DataContractSerializer should be used. The default is false.

The default formatter for fault serialization is the DataContractSerializer. To use the XmlSerializer, set this property to true.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP2
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.