Share via


ODataValidationSettings.MaxExpansionDepth Property

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

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

Syntax

'Declaration
Public Property MaxExpansionDepth As Integer 
    Get 
    Set
'Usage
Dim instance As ODataValidationSettings 
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
The max expansion depth for the expand query option.

Remarks

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

See Also

Reference

ODataValidationSettings Class

System.Web.Http.OData.Query Namespace