Gets or sets the max expansion depth for the $expand query option.
Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public int MaxExpansionDepth { get; set; }
public:
property int MaxExpansionDepth {
    int get();
    void set(int value);
}
member MaxExpansionDepth : int with get, set
Public Property MaxExpansionDepth As Integer
Property Value
Type: System.Int32
Remarks
To disable the maximum expansion depth check, set this property to 0.
See Also
ODataValidationSettings Class
System.Web.OData.Query Namespace
Return to top