Share via


JsonWriterOptions.MaxDepth Propiedad

Definición

Obtiene o establece la profundidad máxima permitida al escribir JSON, con el valor predeterminado (es decir, 0) que indica una profundidad máxima de 1000.

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

Valor de propiedad

Int32

Excepciones

Se produce cuando la profundidad máxima se establece en un valor negativo.

Comentarios

Al leer más allá de esta profundidad, se producirá una excepción <cref="T:System.Text.Json.JsonException>.

Se aplica a