SyndicationCategory.ElementExtensions 屬性

定義

取得這個分類的項目延伸。

public:
 property System::ServiceModel::Syndication::SyndicationElementExtensionCollection ^ ElementExtensions { System::ServiceModel::Syndication::SyndicationElementExtensionCollection ^ get(); };
public System.ServiceModel.Syndication.SyndicationElementExtensionCollection ElementExtensions { get; }
member this.ElementExtensions : System.ServiceModel.Syndication.SyndicationElementExtensionCollection
Public ReadOnly Property ElementExtensions As SyndicationElementExtensionCollection

屬性值

項目延伸的集合。

範例

下列 XML 會示範具有自訂項目的 SyndicationCategory 如何序列化為 Atom 1.0。

<category customAttribute="value" term="FeedCategory" label="CategoryLabel" scheme="CategoryScheme">  
    <customCategoryElement xmlns="">Some text</customCategoryElement>  
</category>  

注意

SyndicationCategory 執行個體內的自訂項目並未序列化為 RSS 2.0。

備註

項目延伸是指 Atom 1.0 或 RSS 2.0 規格中未指定的有效 XML 項目。 假設某個有效 XML 項目的命名空間與封入命名空間不同,您便可將任何此類項目新增為延伸。

適用於