IDataServiceConfiguration.MaxExpandDepth 属性
获取或设置在所有对数据服务的请求的单一 $expand 路径中受支持的最大段数。
命名空间: System.Data.Services
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Property MaxExpandDepth As Integer
Get
Set
用法
Dim instance As IDataServiceConfiguration
Dim value As Integer
value = instance.MaxExpandDepth
instance.MaxExpandDepth = value
int MaxExpandDepth { get; set; }
property int MaxExpandDepth {
int get ();
void set (int value);
}
abstract MaxExpandDepth : int with get, set
function get MaxExpandDepth () : int
function set MaxExpandDepth (value : int)
属性值
类型:System.Int32
表示在 $expand 路径中最大受支持段数的整数。
注释
如果超出限制,则返回状态代码“400 错误的请求”。 指定的值必须介于 0 和 int.MaxValue 之间;否则引发 ArgumentOutOfRangeException。
下面的查询字符串示例在第一个 $expand 路径中有两段,在第二个 $expand 路径中有一段: