IDataServiceConfiguration.MaxExpandDepth 속성
데이터 서비스에 대한 모든 요청의 단일 $expand 경로에서 지원되는 최대 세그먼트 수를 가져오거나 설정합니다.
네임스페이스: System.Data.Services
어셈블리: Microsoft.Data.Services(Microsoft.Data.Services.dll)
구문
‘선언
Property MaxExpandDepth As Integer
Get
Set
‘사용 방법
Dim instance As IDataServiceConfiguration
Dim value As Integer
value = instance.MaxExpandDepth
instance.MaxExpandDepth = value
int MaxExpandDepth { get; set; }
property int MaxExpandDepth {
int get ();
void set (int value);
}
abstract MaxExpandDepth : int with get, set
function get MaxExpandDepth () : int
function set MaxExpandDepth (value : int)
속성 값
유형: System.Int32
$expand 경로에서 지원되는 최대 세그먼트 수를 나타내는 정수입니다.
주의
제한을 초과하면 400 잘못된 요청 상태 코드가 반환됩니다 지정된 값은 0에서 int.MaxValue 사이여야 합니다. 그렇지 않으면 ArgumentOutOfRangeException이 throw됩니다.
다음 쿼리 문자열 샘플에는 첫 번째 $expand 경로에 두 세그먼트와 두 번째 $expand 경로에 하나의 세그먼트가 있습니다.