EntityPropertyMappingAttribute Konstruktoren

Definition

Erstellt eine neue Instanz der EntityPropertyMappingAttribute.

Überlädt

Name Beschreibung
EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Erstellt eine neue Instanz der EntityPropertyMappingAttribute.

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

Erstellt eine Instanz des EntityPropertyMappingAttribute Objekts zum Zuordnen einer Eigenschaft zu einem benutzerdefinierten Feedelement.

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Erstellt eine neue Instanz der 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)

Parameter

sourcePath
String

Der Name der Eigenschaft als Zeichenfolge des Entitätstyps, der der angegebenen Eigenschaft des Feedelements zugeordnet ist.

targetSyndicationItem
SyndicationItemProperty

Ein SyndicationItemProperty Wert, der das Element im Feed darstellt, dem die Eigenschaft zugeordnet werden soll. Dieser Wert muss festgelegt None werden, wenn dies nicht TargetPathder null Fall ist.

targetTextContentKind
SyndicationTextContentKind

Ein TargetTextContentKind Wert, der das Format des inhalts identifiziert, der im Feed angezeigt werden soll.

keepInContent
Boolean

Boolescher Wert, der angibt true , wann die zugeordnete Eigenschaft sowohl an der zugeordneten Position als auch im Inhaltsabschnitt des Feeds angezeigt werden soll.

Gilt für:

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

Erstellt eine Instanz des EntityPropertyMappingAttribute Objekts zum Zuordnen einer Eigenschaft zu einem benutzerdefinierten Feedelement.

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)

Parameter

sourcePath
String

Der Name der Eigenschaft des Entitätstyps als Zeichenfolge, die der angegebenen Eigenschaft im Feed zugeordnet ist.

targetPath
String

Der Name des Ziels als Zeichenfolge im resultierenden Feed, dem die Eigenschaft zugeordnet ist.

targetNamespacePrefix
String

Dieser Parameter gibt zusammen mit targetNamespaceUridem Namespace an, in dem das targetPath Element vorhanden ist.

targetNamespaceUri
String

Gibt den Namespace-URI des Elements als Zeichenfolge an, die von der targetName Eigenschaft angegeben wird.

keepInContent
Boolean

Boolescher Wert, der angibt true , wann die zugeordnete Eigenschaft sowohl an der zugeordneten Position als auch im Inhaltsabschnitt des Feeds angezeigt werden soll.

Hinweise

Wenn weder targetNamespacePrefixtargetNamespaceUri noch angegeben, wird dies targetName im Standardnamespace platziert. Wenn targetNamespacePrefix nicht angegeben, wird automatisch ein Präfix generiert. Wenn targetNamespacePrefix angegeben, aber targetNamespaceUri nicht angegeben wird, wird zur Erstellungszeit eine Ausnahme ausgelöst.

Gilt für: