JsonWriterOptions.MaxDepth Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
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>.