Share via


EntityPropertyMappingAttribute Constructor (String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

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

Creates a new instance of the EntityPropertyMappingAttribute.

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

Syntax

'Declaration
Public Sub New ( _
    sourcePath As String, _
    targetSyndicationItem As SyndicationItemProperty, _
    targetTextContentKind As SyndicationTextContentKind, _
    keepInContent As Boolean _
)
public EntityPropertyMappingAttribute(
    string sourcePath,
    SyndicationItemProperty targetSyndicationItem,
    SyndicationTextContentKind targetTextContentKind,
    bool keepInContent
)

Parameters

  • sourcePath
    Type: System.String
    The name of the property, as string, of the entity type that is mapped to the specified property of the AtomPub feed item.
  • keepInContent
    Type: System.Boolean
    A 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.

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.