Bewerken

Delen via


EntityPropertyMappingAttribute Constructors

Definition

Creates a new instance of the EntityPropertyMappingAttribute.

Overloads

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Creates a new instance of the EntityPropertyMappingAttribute.

EntityPropertyMappingAttribute(String, String, String, String, Boolean)

Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element.

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Creates a new instance of the EntityPropertyMappingAttribute.

public:
 EntityPropertyMappingAttribute(System::String ^ sourcePath, System::Data::Services::Common::SyndicationItemProperty targetSyndicationItem, System::Data::Services::Common::SyndicationTextContentKind targetTextContentKind, bool keepInContent);
public EntityPropertyMappingAttribute (string sourcePath, System.Data.Services.Common.SyndicationItemProperty targetSyndicationItem, System.Data.Services.Common.SyndicationTextContentKind targetTextContentKind, bool keepInContent);
new System.Data.Services.Common.EntityPropertyMappingAttribute : string * System.Data.Services.Common.SyndicationItemProperty * System.Data.Services.Common.SyndicationTextContentKind * bool -> System.Data.Services.Common.EntityPropertyMappingAttribute
Public Sub New (sourcePath As String, targetSyndicationItem As SyndicationItemProperty, targetTextContentKind As SyndicationTextContentKind, keepInContent As Boolean)

Parameters

sourcePath
String

The name of the property, as string, of the entity type that is mapped to the specified property of the feed item.

targetSyndicationItem
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.

targetTextContentKind
SyndicationTextContentKind

A TargetTextContentKind value that identifies the format of the content to display in the feed.

keepInContent
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.

Applies to

EntityPropertyMappingAttribute(String, String, String, String, Boolean)

Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element.

public:
 EntityPropertyMappingAttribute(System::String ^ sourcePath, System::String ^ targetPath, System::String ^ targetNamespacePrefix, System::String ^ targetNamespaceUri, bool keepInContent);
public EntityPropertyMappingAttribute (string sourcePath, string targetPath, string targetNamespacePrefix, string targetNamespaceUri, bool keepInContent);
new System.Data.Services.Common.EntityPropertyMappingAttribute : string * string * string * string * bool -> System.Data.Services.Common.EntityPropertyMappingAttribute
Public Sub New (sourcePath As String, targetPath As String, targetNamespacePrefix As String, targetNamespaceUri As String, keepInContent As Boolean)

Parameters

sourcePath
String

The name of the property of the entity type, as string, that is mapped to the specified property in the feed.

targetPath
String

The name of the target, as string, in the resulting feed to which the property is mapped.

targetNamespacePrefix
String

This parameter, together with targetNamespaceUri, specifies the namespace in which the targetPath element exists.

targetNamespaceUri
String

Specifies the namespace URI of the element, as string, specified by the targetName property.

keepInContent
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.

Remarks

If neither targetNamespacePrefix nor targetNamespaceUri are specified, the targetName will be put in the default namespace. If targetNamespacePrefix is not specified, a prefix is autogenerated. If targetNamespacePrefix is specified, but targetNamespaceUri is not specified, an exception is thrown at construction time.

Applies to