IDataServiceConfiguration.MaxExpandCount 属性

获取或设置可由所有对数据服务的请求的 $expand 查询选项展开的最大段数。

命名空间:  System.Data.Services
程序集:  Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)

语法

声明
Property MaxExpandCount As Integer
    Get
    Set
用法
Dim instance As IDataServiceConfiguration
Dim value As Integer

value = instance.MaxExpandCount

instance.MaxExpandCount = value
int MaxExpandCount { get; set; }
property int MaxExpandCount {
    int get ();
    void set (int value);
}
abstract MaxExpandCount : int with get, set
function get MaxExpandCount () : int
function set MaxExpandCount (value : int)

属性值

类型:System.Int32
要展开的最大段数。

注释

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

下面的查询字符串示例具有两段:

请参阅

参考

IDataServiceConfiguration 接口

System.Data.Services 命名空间