QueryableAttribute.MaxExpansionDepth Property

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

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

Syntax

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

value = instance.MaxExpansionDepth

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

Property Value

Type: System.Int32

Remarks

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

See Also

Reference

QueryableAttribute Class

System.Web.Http Namespace