次の方法で共有


EntityPropertyMappingAttribute.KeepInContent Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public ReadOnly Property KeepInContent As Boolean
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.

Remarks

Whenthe value of KeepInContentis 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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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