JavaScriptSerializer.RecursionLimit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the limit for constraining the number of object levels to process.
public:
property int RecursionLimit { int get(); void set(int value); };
public int RecursionLimit { get; set; }
member this.RecursionLimit : int with get, set
Public Property RecursionLimit As Integer
Property Value
The number of object levels. The default is 100.
Exceptions
The property is set to a value that is less than one.
Remarks
The RecursionLimit property refers to the number of levels in the object hierarchy that JavaScriptSerializer will process in the following cases:
When the JavaScriptSerializer class is deserializing a JSON string.
When the JavaScriptSerializer class is walking an object graph during serialization.
The value of RecursionLimit applies only when you explicitly create an instance of the JavaScriptSerializer class. Use the jsonSerialization
element of the configuration file to set the number of object levels to process for the internal serializer instance that is used by the asynchronous communication layer. For more information about the configuration elements for serialization, see How to: Configure ASP.NET Services in Microsoft Ajax.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기