EntityPropertyMappingAttribute Konstruktoren

Definition

Erstellt eine neue Instanz der EntityPropertyMappingAttribute.

Überlädt

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

Erstellt eine neue Instanz der EntityPropertyMappingAttribute.

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

Erstellt eine EntityPropertyMappingAttribute-Instanz, um eine Eigenschaft einem benutzerdefinierten Feedelement zuzuordnen.

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 als Zeichenfolge dargestellte Name der Eigenschaft des Entitätstyps, die der angegebenen Eigenschaft des Feedelements zugeordnet wird.

targetSyndicationItem
SyndicationItemProperty

Ein SyndicationItemProperty-Wert, der das Element im Feed darstellt, dem die Eigenschaft zugeordnet werden soll. Dieser Wert muss auf None festgelegt werden, wenn der TargetPath nicht nullist.

targetTextContentKind
SyndicationTextContentKind

Ein TargetTextContentKind-Wert, der das Format des Inhalts angibt, der im Feed angezeigt werden soll.

keepInContent
Boolean

Ein boolescher Wert, der true ist, wenn die zugeordnete Eigenschaft sowohl am zugeordneten Speicherort als auch im Inhaltsabschnitt des Feeds angezeigt werden soll.

Gilt für:

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

Erstellt eine EntityPropertyMappingAttribute-Instanz, um eine Eigenschaft einem benutzerdefinierten Feedelement zuzuordnen.

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 als Zeichenfolge dargestellte Name der Eigenschaft des Entitätstyps, die der angegebenen Eigenschaft im Feedelement zugeordnet wird.

targetPath
String

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

targetNamespacePrefix
String

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

targetNamespaceUri
String

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

keepInContent
Boolean

Ein boolescher Wert, der true ist, wenn die zugeordnete Eigenschaft sowohl am zugeordneten Speicherort als auch im Inhaltsabschnitt des Feeds angezeigt werden soll.

Hinweise

Wenn weder targetNamespacePrefix noch targetNamespaceUri angegeben sind, wird der targetName in den Standardnamespace eingefügt. Wenn targetNamespacePrefix nicht angegeben wird, wird ein Präfix automatisch generiert. Wenn targetNamespacePrefix angegeben, aber targetNamespaceUri nicht angegeben wird, wird zur Bauzeit eine Ausnahme ausgelöst.

Gilt für: