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 値。 NoneTargetPathされていない場合は、この値をnullに設定する必要があります。

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が指定されていない場合は、構築時に例外がスローされます。

適用対象