EntityPropertyMappingAttribute.KeepInContent 屬性

定義

取得布林值,這個值表示是否應該在摘要的內容區段中和所對應 (Mapped-to) 位置中重複保留屬性值。

public:
 property bool KeepInContent { bool get(); };
public bool KeepInContent { get; }
member this.KeepInContent : bool
Public ReadOnly Property KeepInContent As Boolean

屬性值

Boolean 值,當屬性同時對應至摘要中的兩個位置時為 true ,否則為 false

備註

當的值為 KeepInContenttrue時,摘要與使用通訊協定 1.0 版 WCF Data Services 用戶端應用程式回溯相容。 當的值 KeepInContentfalse時,數據服務所使用的通訊協定版本必須是 2.0 或更新版本。 如需詳細資訊,請參閱 數據服務版本設定

適用於