Share via


SyndicationItem.SourceFeed 屬性

定義

取得或設定新聞訂閱項目的來源摘要。

public:
 property System::ServiceModel::Syndication::SyndicationFeed ^ SourceFeed { System::ServiceModel::Syndication::SyndicationFeed ^ get(); void set(System::ServiceModel::Syndication::SyndicationFeed ^ value); };
public System.ServiceModel.Syndication.SyndicationFeed SourceFeed { get; set; }
member this.SourceFeed : System.ServiceModel.Syndication.SyndicationFeed with get, set
Public Property SourceFeed As SyndicationFeed

屬性值

SyndicationFeed

新聞訂閱項目所在的 SyndicationFeed 執行個體。

範例

下列 XML 會示範 SourceFeed 屬性如何序列化為 Atom 1.0。

<source>
  <title type="text">MyFeed</title>
  <subtitle type="text">This is my feed</subtitle>
  <link rel="alternate" href="http://myfeed/" />
</source>

下列 XML 會說明 SourceFeed 屬性如何序列化為 RSS 2.0。

<source>MyFeed</source>

備註

當您將 加入 SyndicationItemSyndicationFeed 時,不會自動設定這個屬性- 您必須明確設定此屬性。 當序列化至 Atom 1.0 或 RSS 2.0 時,會將此屬性寫入 <source> 項目。 項目的內容根據您序列化的格式而變更。

適用於