次の方法で共有


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 がスローされます。

次のクエリ文字列サンプルには、1 つ目の $expand パスに 2 つのセグメントが、2 つ目の $expand パスに 1 つのセグメントが存在します。

関連項目

参照

IDataServiceConfiguration インターフェイス

System.Data.Services 名前空間