语言

IDataServiceConfiguration.MaxExpandDepth 属性

定义

获取或设置对数据服务的所有请求在单个 $expand 路径中支持的最大段数。

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

属性值

表示路径中 $expand 支持的最大段数的整数。

注解

如果超出限制,则返回 400 个错误请求状态代码。 指定的值必须介于 0 和 int.MaxValue0 之间;否则,将引发值 ArgumentOutOfRangeException 。

以下查询字符串示例在第一 $expand 个路径中具有两个段,第二 $expand 个路径中的一个段:

适用于