Share via


EnableQueryAttribute.MaxAnyAllExpressionDepth Property

 

Gets or sets the maximum depth of the Any or All elements nested inside the query. This limit helps prevent Denial of Service attacks.

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

Syntax

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

Property Value

Type: System.Int32

The maxiumum depth of the Any or All elements nested inside the query. The default value is 1.

See Also

EnableQueryAttribute Class
System.Web.OData Namespace

Return to top