다음을 통해 공유


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으로 serialize되는 방법을 보여 줍니다.

<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으로 serialize되는 방법을 보여 줍니다.

<source>MyFeed</source>

설명

이 속성은 a에 SyndicationFeed 추가할 SyndicationItem 때 자동으로 설정되지 않습니다. 명시적으로 설정해야 합니다. Atom 1.0 또는 RSS 2.0으로 직렬화된 경우 이 속성은 요소에 <source> 기록됩니다. 해당 요소의 내용은 직렬화하는 형식에 따라 달라집니다.

적용 대상