EntityPropertyMappingAttribute コンストラクター

定義

EntityPropertyMappingAttribute の新しいインスタンスを作成します。

オーバーロード

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

EntityPropertyMappingAttribute の新しいインスタンスを作成します。

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

プロパティをカスタム フィード要素にマップする EntityPropertyMappingAttribute のインスタンスを作成します。

EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean)

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)

パラメーター

sourcePath
String

フィード項目の指定されたプロパティにマップされるエンティティ型のプロパティ名 (文字列)。

targetSyndicationItem
SyndicationItemProperty

プロパティをマップするフィード内で要素を表す SyndicationItemProperty 値。 が でないnull場合は、この値を TargetPathNone設定する必要があります。

targetTextContentKind
SyndicationTextContentKind

フィード内で表示されるコンテンツの形式を識別する TargetTextContentKind 値。

keepInContent
Boolean

ブール値。割り当てるプロパティが、その割り当て先の場所とフィードのコンテンツ セクションの両方で使用される場合は、true です。

適用対象

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

プロパティをカスタム フィード要素にマップする EntityPropertyMappingAttribute のインスタンスを作成します。

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)

パラメーター

sourcePath
String

フィード内の指定されたプロパティにマップされるエンティティ型のプロパティ名 (文字列)。

targetPath
String

プロパティのマップ先となる結果のフィードのターゲットの名前 (文字列)。

targetNamespacePrefix
String

このパラメーターを targetNamespaceUri と共に使用して、targetPath 要素が存在する名前空間を指定します。

targetNamespaceUri
String

プロパティで targetName 指定された要素の名前空間 URI を文字列として指定します。

keepInContent
Boolean

ブール値。割り当てるプロパティが、その割り当て先の場所とフィードのコンテンツ セクションの両方で使用される場合は、true です。

注釈

targetNamespacePrefixtargetNamespaceUri のどちらも指定しない場合、targetName が既定の名前空間に配置されます。 targetNamespacePrefix を指定しない場合、プレフィックスが自動生成されます。 targetNamespacePrefix が指定されている場合でも、targetNamespaceUri が指定されていないと、構築時に例外がスローされます。

適用対象