EntityPropertyMappingAttribute Constructeurs

Définition

Crée une nouvelle instance de EntityPropertyMappingAttribute.

Surcharges

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Crée une nouvelle instance de EntityPropertyMappingAttribute.

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

Crée une instance de EntityPropertyMappingAttribute pour mapper une propriété à un élément de flux personnalisé.

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Crée une nouvelle instance de 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ètres

sourcePath
String

Nom de la propriété, sous forme de chaîne, du type d'entité qui est mappé à la propriété spécifiée de l'élément de flux.

targetSyndicationItem
SyndicationItemProperty

Valeur SyndicationItemProperty qui représente l'élément dans le flux auquel mapper la propriété. Cette valeur doit être définie sur None si n’est TargetPath pas null.

targetTextContentKind
SyndicationTextContentKind

Valeur TargetTextContentKind qui identifie le format du contenu à afficher dans le flux.

keepInContent
Boolean

Valeur booléenne qui est true si la propriété qui est mappée doit s'afficher à la fois à son emplacement de mappage et dans la section de contenu du flux.

S’applique à

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

Crée une instance de EntityPropertyMappingAttribute pour mapper une propriété à un élément de flux personnalisé.

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ètres

sourcePath
String

Nom de la propriété du type d'entité, sous forme de chaîne, qui est mappé à la propriété spécifiée dans le flux.

targetPath
String

Nom de la cible, sous forme de chaîne, dans le flux résultant auquel la propriété est mappée.

targetNamespacePrefix
String

Ce paramètre, associé à targetNamespaceUri, spécifie l’espace de noms dans lequel se trouve l’élément targetPath.

targetNamespaceUri
String

Spécifie l’URI d’espace de noms de l’élément, sous forme de chaîne, spécifié par la targetName propriété .

keepInContent
Boolean

Valeur booléenne qui est true si la propriété qui est mappée doit s'afficher à la fois à son emplacement de mappage et dans la section de contenu du flux.

Remarques

Si ni ne targetNamespacePrefixtargetNamespaceUri sont spécifiés, le targetName est placé dans l’espace de noms par défaut. Si targetNamespacePrefix n’est pas spécifié, un préfixe est généré automatiquement. Si targetNamespacePrefix est spécifié, mais targetNamespaceUri n’est pas spécifié, une exception est levée au moment de la construction.

S’applique à