XmlDictionaryReaderQuotas.MaxDepth Property


Gets or sets the maximum nested node depth.

 property int MaxDepth { int get(); void set(int value); };
public int MaxDepth { get; set; }
member this.MaxDepth : int with get, set
Public Property MaxDepth As Integer

Property Value

The maximum nested node depth. The default is 32.


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.

Applies to