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)

Syntax

'Declaration
Public ReadOnly Property TargetTextContentKind As SyndicationTextContentKind 
    Get
'Usage
Dim instance As EntityPropertyMappingAttribute 
Dim value As SyndicationTextContentKind 

value = instance.TargetTextContentKind
public SyndicationTextContentKind TargetTextContentKind { get; }
public:
property SyndicationTextContentKind TargetTextContentKind {
    SyndicationTextContentKind get ();
}
member TargetTextContentKind : SyndicationTextContentKind
function get TargetTextContentKind () : SyndicationTextContentKind

Property Value

Type: System.Data.Services.Common.SyndicationTextContentKind
A string that identifies the type of content in the feed element.

Remarks

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.

See Also

Reference

EntityPropertyMappingAttribute Class

System.Data.Services.Common Namespace