共用方式為


DataServiceBehavior.IncludeAssociationLinksInResponse 屬性

取得或設定資料服務的回應中是否包含關聯性連結。

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

語法

'宣告
Public Property IncludeAssociationLinksInResponse As Boolean
    Get
    Set
'用途
Dim instance As DataServiceBehavior
Dim value As Boolean

value = instance.IncludeAssociationLinksInResponse

instance.IncludeAssociationLinksInResponse = value
public bool IncludeAssociationLinksInResponse { get; set; }
public:
property bool IncludeAssociationLinksInResponse {
    bool get ();
    void set (bool value);
}
member IncludeAssociationLinksInResponse : bool with get, set
function get IncludeAssociationLinksInResponse () : boolean
function set IncludeAssociationLinksInResponse (value : boolean)

屬性值

型別:System.Boolean
如果傳回關聯性連結則為 true,否則為 false。

備註

預設值為 false。

請參閱

參考

DataServiceBehavior 類別

System.Data.Services 命名空間