Bewerken

Delen via


XmlDictionaryReaderQuotas.MaxDepth Property

Definition

Gets or sets the maximum nested node depth.

public:
 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.

Exceptions

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

Trying to set the value is less than zero.

Remarks

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

Applies to