EntityPropertyMappingAttribute.TargetTextContentKind Property

Gets the type of content of the property mapped by EntityPropertyMappingAttribute.

Namespace:  System.Data.Services.Common
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

public SyndicationTextContentKind TargetTextContentKind { get; }

Property Value

Type: System.Data.Services.Common.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.

When you specify a value of xhtml for the TargetTextContentKind attribute, you must make sure that that the property value contains correctly formatted XML. The data service returns the value without performing any transformations. You must also make sure that that any XML element prefixes in the returned XML have a namespace URI and prefix defined in the mapped feed.