語言

IDataServiceConfiguration.MaxExpandCount 屬性

定義

取得或設定查詢選項可擴充 $expand 的所有資料服務請求的最大區段數。

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

屬性值

擴展的最大區段數。

備註

若超過限制,會回傳 400 錯誤請求狀態碼。 指定的值必須介於 0 與 int.MaxValue;否則會拋出 an ArgumentOutOfRangeException 。

以下查詢字串範例包含兩個段落:

適用於