Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EntityPropertyMappingAttribute Constructor (String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

EntityPropertyMappingAttribute Constructor (String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Creates a new instance of the EntityPropertyMappingAttribute.

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

public EntityPropertyMappingAttribute(
	string sourcePath,
	SyndicationItemProperty targetSyndicationItem,
	SyndicationTextContentKind targetTextContentKind,
	bool keepInContent


Type: System.String
The name of the property, as string, of the entity type that is mapped to the specified property of the feed item.
Type: System.Data.Services.Common.SyndicationItemProperty
A SyndicationItemProperty value that represents the element in the feed to which to map the property. This value must be set to None if the TargetPath is not null.
Type: System.Data.Services.Common.SyndicationTextContentKind
A TargetTextContentKind value that identifies the format of the content to display in the feed.
Type: System.Boolean
Boolean value that is true when the property being mapped should appear both in its mapped-to location and in the content section of the feed.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft