共用方式為


DataServiceConfiguration.MaxExpandDepth 屬性

取得或設定可包含在單一要求中之 $expand 路徑的相關實體數目上限。

命名空間:  System.Data.Services
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Property MaxExpandDepth As Integer
    Get
    Set
'用途
Dim instance As DataServiceConfiguration
Dim value As Integer

value = instance.MaxExpandDepth

instance.MaxExpandDepth = value
public int MaxExpandDepth { get; set; }
public:
virtual property int MaxExpandDepth {
    int get () sealed;
    void set (int value) sealed;
}
abstract MaxExpandDepth : int with get, set
override MaxExpandDepth : int with get, set
final function get MaxExpandDepth () : int
final function set MaxExpandDepth (value : int)

屬性值

型別:System.Int32
$expand 路徑的最大深度。

實作

IDataServiceConfiguration.MaxExpandDepth

請參閱

參考

DataServiceConfiguration 類別

System.Data.Services 命名空間

其他資源

設定資料服務 (WCF Data Services)