IDataServiceConfiguration.MaxExpandCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定查詢選項可擴充 $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 。
以下查詢字串範例包含兩個段落: