Nyelv

EntityPropertyMappingAttribute Konstruktorok

Definíció

Létrehoz egy új példányt a EntityPropertyMappingAttribute.

Túlterhelések

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Létrehoz egy új példányt a 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)

Paraméterek

sourcePath
String

A hírcsatornaelem megadott tulajdonságához hozzárendelt entitástípus tulajdonságának sztringként megadott neve.

targetSyndicationItem
SyndicationItemProperty

Egy SyndicationItemProperty érték, amely a hírcsatorna azon elemét jelöli, amelyhez a tulajdonságot le szeretné képezni. Ezt az értéket akkor kell beállítani, None ha az TargetPath nem null.

targetTextContentKind
SyndicationTextContentKind

A TargetTextContentKind hírcsatornában megjelenítendő tartalom formátumát azonosító érték.

keepInContent
Boolean

A leképezett tulajdonság logikai értékének true a megfeleltetett helyen és a hírcsatorna tartalomszakaszában is meg kell jelennie.

A következőre érvényes:

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

Létrehoz egy példányt a EntityPropertyMappingAttribute tulajdonság egyéni hírcsatornaelemhez való leképezéséhez.

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)

Paraméterek

sourcePath
String

Az entitástípus tulajdonságának neve sztringként, amely a hírcsatorna megadott tulajdonságához van megfeleltetve.

targetPath
String

A cél neve sztringként abban az eredményül kapott hírcsatornában, amelyre a tulajdonság megfeleltetve van.

targetNamespacePrefix
String

Ez a paraméter és annak targetNamespaceUria névtérnek a megadása, amelyben az targetPath elem létezik.

targetNamespaceUri
String

Az elem névterének URI-ját adja meg sztringként, amelyet a targetName tulajdonság határoz meg.

keepInContent
Boolean

A leképezett tulajdonság logikai értékének true a megfeleltetett helyen és a hírcsatorna tartalomszakaszában is meg kell jelennie.

Megjegyzések

Ha nincs megadva targetNamespacePrefix , targetNamespaceUri akkor a rendszer az targetName alapértelmezett névtérbe helyezi. Ha targetNamespacePrefix nincs megadva, a program automatikusan létrehoz egy előtagot. Ha targetNamespacePrefix meg van adva, de targetNamespaceUri nincs megadva, a rendszer kivételt jelez az építkezéskor.

A következőre érvényes: