KeepInContent Property
Collapse the table of content
Expand the table of content

EntityPropertyMappingAttribute.KeepInContent Property

Gets a Boolean value that indicates whether a property value should be repeated both in the content section of the feed and in the mapped location.

Namespace:  System.Data.Services.Common
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

public bool KeepInContent { get; }

Property Value

Type: System.Boolean
A Boolean value that is true when the property is mapped into both locations in the feed; otherwise false.

When the value of KeepInContent is true, the feed is backward compatible with WCF Data Services client applications that use protocol version 1.0. When the value of KeepInContent is false, the protocol version used by the data service must be 2.0 or later versions. For more information, see Working with Multiple Versions of WCF Data Services.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2016 Microsoft