QueryableAttribute.MaxAnyAllExpressionDepth Property

Gets or sets the maximum depth of the Any or All elements nested inside the query.

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

Syntax

'Declaration
Public Property MaxAnyAllExpressionDepth As Integer 
    Get 
    Set
'Usage
Dim instance As QueryableAttribute 
Dim value As Integer 

value = instance.MaxAnyAllExpressionDepth

instance.MaxAnyAllExpressionDepth = value
public int MaxAnyAllExpressionDepth { get; set; }
public:
property int MaxAnyAllExpressionDepth {
    int get ();
    void set (int value);
}
member MaxAnyAllExpressionDepth : int with get, set
function get MaxAnyAllExpressionDepth () : int 
function set MaxAnyAllExpressionDepth (value : int)

Property Value

Type: System.Int32
The maximum depth of the Any or All elements nested inside the query. The default value is 1.

Remarks

This limit helps prevent Denial of Service attacks.

See Also

Reference

QueryableAttribute Class

System.Web.Http Namespace