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

屬性值

剖析 JSON 資料時允許的最大深度。

例外狀況

最大深度設定為負值。

備註

剖析超過此深度將會擲回 JsonException

適用於