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.MaxValue0 사이여야 합니다. 그렇지 않으면 throw ArgumentOutOfRangeException 됩니다.

다음 쿼리 문자열 샘플에는 첫 번째 $expand 경로에 두 개의 세그먼트가 있고 다른 하나는 두 번째 $expand 경로에 있습니다.

적용 대상