EntityPropertyMappingAttribute.TargetTextContentKind 属性
定义
获取由 EntityPropertyMappingAttribute 映射的属性的内容类型。Gets the type of content of the property mapped by EntityPropertyMappingAttribute.
public:
property System::Data::Services::Common::SyndicationTextContentKind TargetTextContentKind { System::Data::Services::Common::SyndicationTextContentKind get(); };
public System.Data.Services.Common.SyndicationTextContentKind TargetTextContentKind { get; }
member this.TargetTextContentKind : System.Data.Services.Common.SyndicationTextContentKind
Public ReadOnly Property TargetTextContentKind As SyndicationTextContentKind
属性值
一个标识源元素中的内容类型的字符串。A string that identifies the type of content in the feed element.
注解
如果映射到联合内容,则此属性为联合项的内容类型。If mapping to syndication content, this property is the content type of syndication item.
为 Xhtml 特性指定值 TargetTextContentKind 时,必须确保该属性值包含格式正确的 XML。When you specify a value of Xhtml for the TargetTextContentKind attribute, you must ensure that the property value contains properly formatted XML. 数据服务返回值,但不执行任何转换。The data service returns the value without performing any transformations. 还必须确保返回的 XML 中任何 XML 元素前缀在映射的源中定义了命名空间 URI 和前缀。You must also ensure that any XML element prefixes in the returned XML have a namespace URI and prefix defined in the mapped feed.