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)

member MaxDepth : int with get, set

Property Value

Type: System.Int32

The maximum nested node depth. The default is 32;

Exception Condition
InvalidOperationException

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

ArgumentException

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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft