JsonDocumentOptions.MaxDepth 属性

定义

获取或设置分析 JSON 数据时允许的最大深度,默认值(即 0)表示最大深度为 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

属性值

Int32

分析 JSON 数据时允许的最大深度。

例外

最大深度设置为负值。

注解

分析超过此深度将引发一个 JsonException

适用于