Share via


ExceptionSettings.RecursionLimit Property

Definition

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.

Applies to