EntityPropertyMappingAttribute.KeepInContent 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得一個布林值,指示是否應該在資訊流的內容區塊和映射位置重複某個屬性值。
public:
property bool KeepInContent { bool get(); };
public bool KeepInContent { get; }
member this.KeepInContent : bool
Public ReadOnly Property KeepInContent As Boolean
屬性值
值Boolean表示true屬性映射到資訊流的兩個位置;否則,。 false
備註
當 的 KeepInContent 值為 true時,資料流與使用 1.0 協定版本的 WCF Data Services 用戶端應用程式向下相容。 當 的 KeepInContent 值為 false時,資料服務所使用的協定版本必須是 2.0 或更新版本。 欲了解更多資訊,請參閱 資料服務版本管理。