EntityPropertyMappingAttribute Costruttori

Definizione

Crea una nuova istanza dell'oggetto EntityPropertyMappingAttribute.

Overload

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Crea una nuova istanza dell'oggetto EntityPropertyMappingAttribute.

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

Crea un'istanza della classe EntityPropertyMappingAttribute per eseguire il mapping di una proprietà a un elemento feed personalizzato.

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Crea una nuova istanza dell'oggetto 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)

Parametri

sourcePath
String

Nome della proprietà, sotto forma di stringa, del tipo di entità mappata alla proprietà specificata dell'elemento del feed.

targetSyndicationItem
SyndicationItemProperty

Valore SyndicationItemProperty che rappresenta l'elemento nel feed al quale eseguire il mapping della proprietà. Questo valore deve essere impostato su None se non TargetPath è null.

targetTextContentKind
SyndicationTextContentKind

Valore TargetTextContentKind che identifica il formato del contenuto da visualizzare nel feed.

keepInContent
Boolean

Valore booleano che è true quando la proprietà di cui viene eseguito il mapping deve essere visualizzata sia nel percorso di mapping sia nella sezione contenuto del feed.

Si applica a

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

Crea un'istanza della classe EntityPropertyMappingAttribute per eseguire il mapping di una proprietà a un elemento feed personalizzato.

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)

Parametri

sourcePath
String

Nome della proprietà del tipo di entità, sotto forma di stringa, mappato alla proprietà specificata nel feed.

targetPath
String

Nome del database di destinazione, come stringa, nel feed risultante a cui verrà eseguito il mapping della proprietà.

targetNamespacePrefix
String

Questo parametro, insieme con targetNamespaceUri, specifica lo spazio dei nomi in cui è presente l'elemento targetPath.

targetNamespaceUri
String

Specifica l'URI dello spazio dei nomi dell'elemento, come stringa, specificato dalla targetName proprietà .

keepInContent
Boolean

Valore booleano che è true quando la proprietà di cui viene eseguito il mapping deve essere visualizzata sia nel percorso di mapping sia nella sezione contenuto del feed.

Commenti

Se né né targetNamespacePrefixtargetNamespaceUri vengono specificati, verrà targetName inserito nello spazio dei nomi predefinito. Se targetNamespacePrefix non viene specificato, viene generato automaticamente un prefisso. Se targetNamespacePrefix viene specificato, ma targetNamespaceUri non viene specificato, viene generata un'eccezione in fase di costruzione.

Si applica a