XmlSerializerSection Class
Handles the XML elements used to configure XML serialization.
class XmlSerializerSection : ConfigurationSection
The following table lists the methods exposed by the XmlSerializerSection
class.
Name | Description |
---|---|
GetAllowDefinition | (Inherited from ConfigurationSection.) |
GetAllowLocation | (Inherited from ConfigurationSection .) |
RevertToParent | (Inherited from ConfigurationSection .) |
SetAllowDefinition | (Inherited from ConfigurationSection .) |
SetAllowLocation | (Inherited from ConfigurationSection .) |
The following table lists the properties exposed by the XmlSerializerSection
class.
Name | Description |
---|---|
CheckDeserializeAdvances |
A read/write Boolean value. true if the progress of the XmlSerializer is checked; otherwise, false . The default is false . Note: By default, the XmlSerializer provides an additional layer of security against potential denial of service attacks when untrusted data is deserialized. It does so by attempting to detect infinite loops during deserialization. If such a condition is detected, an exception is thrown with the following message: "Internal error: deserialization failed to advance over underlying stream." This message does not necessarily indicate that a denial of service attack is in progress. In some rare circumstances, the infinite loop detection mechanism produces a false positive and the exception is thrown for a legitimate incoming message. If you find in your particular application that legitimate messages are being rejected by this extra layer of protection, set the CheckDeserializeAdvances property to false . |
Location |
(Inherited from ConfigurationSection .) A key property. |
Path |
(Inherited from ConfigurationSection .) A key property. |
SectionInformation |
(Inherited from ConfigurationSection .) |
This class contains no subclasses.
XmlSerializerSection
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
ConfigurationSection Class
System.Xml.Serialization.XmlSerializer Class