This documentation is archived and is not being maintained.

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 */
public int get_MaxDepth ()

/** @property */
public void set_MaxDepth (int value)

public function get MaxDepth () : int

public function set MaxDepth (value : int)

Not applicable.

Property Value

The maximum nested node depth. The default is 32;

Exception typeCondition

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: