MaxDepth Property

XmlDictionaryReaderQuotas.MaxDepth Property


Gets and sets the maximum nested node depth.

Namespace:   System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public int MaxDepth { get; set; }

Property Value

Type: System.Int32

The maximum nested node depth. The default is 32;

Exception Condition

Trying to set the value and quota values are read-only for this instance.


Trying to set the value is less than zero.

This quota sets a limit on the nested node depth for the XML.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft