Share via


JsonReaderOptions.MaxDepth Propiedad

Definición

Obtiene o establece la profundidad máxima permitida al leer JSON, y el valor predeterminado (es decir, 0) indica una profundidad máxima de 64.

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

Profundidad máxima permitida al leer JSON.

Excepciones

La profundidad máxima se establece en un valor negativo.

Comentarios

La lectura más allá de esta profundidad iniciará una excepción JsonException.

Se aplica a