EntityPropertyMappingAttribute.TargetTextContentKind 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得由 映射 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
屬性值
一個用來識別 feed 元素中內容類型的字串。
備註
若映射至聯播內容,此屬性即為聯播項目的內容類型。
當你為屬性指定值XhtmlTargetTextContentKind時,必須確保屬性值包含格式正確的 XML。 資料服務在不進行任何轉換的情況下回傳該值。 你還必須確保回傳 XML 中的任何 XML 元素前綴在映射的資訊流中,都有定義的命名空間 URI 和前綴。