Share via


SelectExpandQueryOption.LevelsMaxLiteralExpansionDepth Property

 

Gets or sets the number of levels that a top level $expand=NavigationProperty($levels=max) will be expanded. This value will decrease by one with each nesting level in the $expand clause. For example, with a property value 5, the following query $expand=A($expand=B($expand=C($levels=max))) will be interpreted as $expand=A($expand=B($expand=C($levels=3))). If the query gets validated, the MaxExpansionDepth value must be greater than or equal to this value.

Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public int LevelsMaxLiteralExpansionDepth { get; set; }
public:
property int LevelsMaxLiteralExpansionDepth {
    int get();
    void set(int value);
}
member LevelsMaxLiteralExpansionDepth : int with get, set
Public Property LevelsMaxLiteralExpansionDepth As Integer

Property Value

Type: System.Int32

See Also

SelectExpandQueryOption Class
System.Web.OData.Query Namespace

Return to top