EntityPropertyMappingAttribute Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une instance du EntityPropertyMappingAttribute.
Surcharges
| Nom | Description |
|---|---|
| EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean) |
Crée une instance du EntityPropertyMappingAttribute. |
| EntityPropertyMappingAttribute(String, String, String, String, Boolean) |
Crée une instance de la EntityPropertyMappingAttribute propriété pour mapper une propriété à un élément de flux personnalisé. |
EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)
Crée une instance du 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é mappé à la propriété spécifiée de l’élément de flux.
- targetSyndicationItem
- SyndicationItemProperty
Valeur SyndicationItemProperty qui représente l’élément du flux auquel mapper la propriété. Cette valeur doit être définie None si ce n’est pas TargetPathle null cas.
- targetTextContentKind
- SyndicationTextContentKind
Valeur TargetTextContentKind qui identifie le format du contenu à afficher dans le flux.
- keepInContent
- Boolean
Valeur booléenne qui est true lorsque la propriété en cours de mappage doit apparaître à la fois dans son emplacement mappé et dans la section de contenu du flux.
S’applique à
EntityPropertyMappingAttribute(String, String, String, String, Boolean)
Crée une instance de la EntityPropertyMappingAttribute propriété 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, 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, avec targetNamespaceUri, spécifie l’espace de noms dans lequel l’élément targetPath existe.
- targetNamespaceUri
- String
Spécifie l’URI d’espace de noms de l’élément, comme chaîne, spécifiée par la targetName propriété.
- keepInContent
- Boolean
Valeur booléenne qui est true lorsque la propriété en cours de mappage doit apparaître à la fois dans son emplacement mappé et dans la section de contenu du flux.
Remarques
Si aucun n’est targetNamespacePrefix spécifié, targetNamespaceUri il targetName est placé dans l’espace de noms par défaut. Si targetNamespacePrefix ce n’est pas spécifié, un préfixe est généré automatiquement. Si targetNamespacePrefix elle est spécifiée, mais targetNamespaceUri n’est pas spécifiée, une exception est levée au moment de la construction.