SyndicationFeed.Copyright 속성

정의

피드에 대한 저작권 정보를 가져오거나 설정합니다.

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

속성 값

TextSyndicationContent

피드에 대한 저작권 정보를 나타내는 SyndicationContent 개체입니다.

예제

다음 코드에서는 SyndicationFeed의 저작권 정보를 설정하는 방법을 보여 줍니다.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Copyright = new TextSyndicationContent("Copyright 2007");
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now)
feed.Copyright = New TextSyndicationContent("Copyright 2007")

다음 XML에서는 Copyright가 Atom 1.0으로 serialize되는 방법을 보여 줍니다.

<rights type="text">Copyright 2007</rights>
<rights type="text">Copyright 2007</rights>  

다음 XML에서는 Copyright가 RSS 2.0으로 serialize되는 방법을 보여 줍니다.

<copyright>Copyright 2007</copyright>

설명

Atom 1.0 Copyright 으로 serialize되면 요소에 <rights> 기록됩니다.

RSS 2.0 Copyright 으로 직렬화되면 요소에 <copyright> 기록됩니다.

적용 대상