共用方式為


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 命名空間