共用方式為


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.MaxValue之間, ArgumentOutOfRangeException 否則會擲回 。

下列查詢字串範例中,第一個 $expand 路徑有兩個區段,第二個 $expand 路徑有一個區段:

適用於