ODataValidationSettings.MaxExpansionDepth Property

Definition

Gets or sets the max expansion depth for the $expand query option.

C#
public int MaxExpansionDepth { get; set; }

Property Value

Remarks

To disable the maximum expansion depth check, set this property to 0.

Applies to

Product Versions
OData Web API ASP .NET 7.0, Core 7.0