EntityPropertyMappingAttribute Constructor (String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Creates a new instance of the EntityPropertyMappingAttribute.

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

Syntax

'Declaration
Public Sub New ( _
    sourcePath As String, _
    targetSyndicationItem As SyndicationItemProperty, _
    targetTextContentKind As SyndicationTextContentKind, _
    keepInContent As Boolean _
)
'Usage
Dim sourcePath As String 
Dim targetSyndicationItem As SyndicationItemProperty 
Dim targetTextContentKind As SyndicationTextContentKind 
Dim keepInContent As Boolean 

Dim instance As New EntityPropertyMappingAttribute(sourcePath, _
    targetSyndicationItem, targetTextContentKind, _
    keepInContent)
public EntityPropertyMappingAttribute(
    string sourcePath,
    SyndicationItemProperty targetSyndicationItem,
    SyndicationTextContentKind targetTextContentKind,
    bool keepInContent
)
public:
EntityPropertyMappingAttribute(
    String^ sourcePath, 
    SyndicationItemProperty targetSyndicationItem, 
    SyndicationTextContentKind targetTextContentKind, 
    bool keepInContent
)
new : 
        sourcePath:string * 
        targetSyndicationItem:SyndicationItemProperty * 
        targetTextContentKind:SyndicationTextContentKind * 
        keepInContent:bool -> EntityPropertyMappingAttribute
public function EntityPropertyMappingAttribute(
    sourcePath : String, 
    targetSyndicationItem : SyndicationItemProperty, 
    targetTextContentKind : SyndicationTextContentKind, 
    keepInContent : boolean
)

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 feed item.
  • keepInContent
    Type: System.Boolean
    Boolean value that is true when the property being mapped must appear both in its mapped-to location and in the content section of the feed.

See Also

Reference

EntityPropertyMappingAttribute Class

EntityPropertyMappingAttribute Overload

System.Data.Services.Common Namespace