ExceptionSettings.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 the maximum number of nested errors to serialize or deserialize.
public int RecursionLimit { get; init; }
member this.RecursionLimit : int with get, set
Public Property RecursionLimit As Integer
Property Value
The default value is 50.
Remarks
This can help mitigate DoS attacks from unbounded recursion that otherwise error deserialization becomes perhaps uniquely vulnerable to since the data structure allows recursion.