EntityPropertyMappingAttribute 생성자

정의

의 새 인스턴스를 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 속성을 매핑할 피드의 요소를 나타내는 값입니다. 이 값은 이 값이 TargetPath 아닌 null경우로 None 설정해야 합니다.

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

속성에 지정된 문자열로 요소의 네임스페이스 URI를 targetName 지정합니다.

keepInContent
Boolean

매핑되는 속성이 매핑된 위치와 피드의 콘텐츠 섹션에 모두 표시되어야 하는 부울 값입니다 true .

설명

둘 다 지정 targetName 하지 targetNamespaceUritargetNamespacePrefix 않으면 기본 네임스페이스에 배치됩니다. 지정하지 않으면 targetNamespacePrefix 접두사는 자동으로 생성됩니다. 지정되었지만 targetNamespaceUri 지정되지 않은 경우 targetNamespacePrefix 생성 시 예외가 throw됩니다.

적용 대상